If I just open CVI by itself (vs. launching a .prj from P4V), I first get an error telling me that
"LabWindows/CVI has detected that the Perforce Command Line Client is not installed or configured correctly on this computer. National Instruments recommends that you install this component from the Perforce installer in order for the Source Code Control integration in LabWindows/CVI to work correctly."
Then I get the "Unable to Open Source Code Control Project" message
Then, in the Source Control Debug window (tab) I get the following.
ERROR: Connect to server failed; check $P4PORT.
ERROR: TCP connect to 1666 failed.
ERROR: connect: 1666: WSAECONNREFUSED
The log shows the following:
08:06:09 1: Initialize(b3432c0)
08:06:09 1: CallerName: LabWindows/CVI
08:06:09 1: SccName set to: Perforce
08:06:09 1: SccCaps set to: 107e1db8
08:06:09 1: AuxPathLabel set to: Perforce Project
08:06:09 1: CheckoutCommentLen set to: 0
08:06:09 1: CommentLen set to: 1024
08:06:09 1: Result: SCC_OK, elapsed time=1/1ms
08:06:20 1: OpenProject(b3432c0)
08:06:20 1: User:
08:06:20 1: ProjName:
08:06:20 1: LocalProjPath: c:\Program Files\National Instruments\CVI80\
08:06:20 1: AuxProjPath: P4SCC#1666##user1##LP15
08:06:20 1: Comment:
08:06:20 1: TextOutProc: 1032b4c5
08:06:20 1: Flags: 2
08:06:21 E: Connect to server failed; check $P4PORT.
08:06:21 E: TCP connect to 1666 failed.
08:06:21 E: connect: 1666: WSAECONNREFUSED
08:06:21 2: Unable to open workspace
08:06:21 1: Result: SCC_E_INITIALIZEFAILED, elapsed time=1113/1114ms
08:09:09 1: Initialize(b342b20)
08:09:09 1: CallerName: LabWindows/CVI
08:09:09 1: SccName set to: Perforce
08:09:09 1: SccCaps set to: 107e1dbc
08:09:09 1: AuxPathLabel set to: Perforce Project
08:09:09 1: CheckoutCommentLen set to: 0
08:09:09 1: CommentLen set to: 1024
08:09:09 1: Result: SCC_OK, elapsed time=1/1ms
08:09:10 1: OpenProject(b342b20)
08:09:10 1: User:
08:09:10 1: ProjName:
08:09:10 1: LocalProjPath: c:\program files\national instruments\cvi80\
08:09:10 1: AuxProjPath:
08:09:10 1: Comment:
08:09:10 1: TextOutProc: 1032b4c5
08:09:10 1: Flags: 2
08:09:10 2: AuxProjPath empty; showing config dialog.
08:09:13 2: User canceled config dialog
08:09:13 1: Result: SCC_I_OPERATIONCANCELED, elapsed time=3008/3009ms
08:09:14 1: GetCommandOptions(b342b20)
08:09:14 1: Command: 10
08:09:14 1: Options: 0 -> 0
08:09:14 1: Result: SCC_I_ADV_SUPPORT, elapsed time=1/3010ms
08:09:16 1: GetCommandOptions(b342b20)
08:09:16 1: Command: 10
08:09:16 1: Options: 107e1510 -> 0
08:09:19 1: Result: SCC_I_OPERATIONCANCELED, elapsed time=2993/6003ms
... basically, it looks like the port is not getting set properly ? Why is it trying to connect to 1666?
Then ... I tried to uninstall, and reinstall Perforce, and I don't get the initial error message, but it still fails to Open Source Code Control Project.
here is the error log on the second attempt (after re-installing Perforce)
08:24:51 1: Result: SCC_OK, elapsed time=7408/10966ms
08:24:53 1: Uninitialize(bb41348)
08:24:53 1: Total elapsed time on context: 10966
08:25:17 1: Initialize(bb033a8)
08:25:17 1: CallerName: LabWindows/CVI
08:25:17 1: SccName set to: Perforce
08:25:17 1: SccCaps set to: 107e1dbc
08:25:17 1: AuxPathLabel set to: Perforce Project
08:25:17 1: CheckoutCommentLen set to: 0
08:25:17 1: CommentLen set to: 1024
08:25:17 1: Result: SCC_OK, elapsed time=1/1ms
08:25:17 1: OpenProject(bb033a8)
08:25:17 1: User:
08:25:17 1: ProjName:
08:25:17 1: LocalProjPath: C:\Sandbox\
08:25:17 1: AuxProjPath:
08:25:17 1: Comment:
08:25:17 1: TextOutProc: 1032b4c5
08:25:17 1: Flags: 2
08:25:17 2: AuxProjPath empty; showing config dialog.
08:25:19 C: p4 users andern4
08:25:20 C: p4 job -o
08:25:20 C: p4 info
08:25:21 C: p4 job -o
08:25:22 1: AuxProjPath changed to: P4SCC#gustav:1818##andern4##njaLP15_Powerage
08:25:22 1: Client root: C:\Sandbox
08:25:22 C: p4 client -o njaLP15_Powerage
08:25:22 2: Running p4 where on local project path returned no depot path
08:25:22 1: Result: SCC_E_INVALIDFILEPATH, elapsed time=4758/4759ms
08:25:23 1: GetCommandOptions(bb033a8)
08:25:23 1: Command: 10
08:25:23 1: Options: 0 -> 0
08:25:23 1: Result: SCC_I_ADV_SUPPORT, elapsed time=1/4760ms
08:25:25 1: GetCommandOptions(bb033a8)
08:25:25 1: Command: 10
08:25:25 1: Options: 107e1510 -> 0
08:25:28 1: Result: SCC_OK, elapsed time=3071/7831ms
08:25:28 1: Uninitialize(bb033a8)
08:25:28 1: Total elapsed time on context: 7831