microsoft / p4vfs

Microsoft Virtual File System for Perforce
MIT License
272 stars 13 forks source link

How can i sync? #13

Open patrikszekres opened 1 year ago

patrikszekres commented 1 year ago

I opened the CMD with administrator. Then i set the $P4PORT, $P4CLIENT and $P4USER variable. I run the p4vfs.exe login command and then login to the perforce with password. I want to sync my debot with p4vfs.exe sync //myprojects/projectname/username/folder/name/... command. But the p4vfs always crash with sync action:

P4VFS version 1.24.2.0 Virtual Sync: ["//myprojects/projectname/username/folder/name/..."] Normal Atomic @999999 Started at [03/24/2023-17:24:52] version [1.24.2.0] 1 Modification messages to act on. Unsupported sync action: None <--- ERROR Virtual Sync Summary: Total Files: 1 / 1 Total Time: 0 sec (0.656) Virtual Mod Time: 0 sec Resident Mod Time: 0 sec Virtual File Size: 0 bytes Disk File Size: 0 bytes

and here is my p4vfs.exe info output: P4VFS version 1.24.2.0 P4 UserName: username P4 ClientName: p4vfs P4 ClientHost: DESKTOP999999 P4 ClientRoot: c:\Share P4 ClientStream: P4 ServerAddress: perforceip:1999 P4 ServerVersion: P4D/LINUX26X86_64/2021.1/2313999 (2022/07/15) P4 CaseHandling: sensitive P4VFS CurrentVersion: 1.24.2.0 P4VFS ServiceVersion: 1.24.2.0 P4VFS DriverVersion: 1.24.0.0 P4VFS DriverReady: True P4VFS ServiceReady: True P4VFS SystemReady: True

jessk-msft commented 1 year ago

Hi @patrikszekres, It sounds like something is incorrect with the perforce environment which the p4vfs.exe is using. A helpful way to be sure is to open P4V, and connect to your server and workspace. Then right-click on the depot tree and "Open Command Window Here". Then run the p4vfs.exe command in that prompt.

jessk-msft commented 1 year ago

I see the Unsupported sync action: None message is shown when an invalid client configuration is used. We certainly need a better error message for this case.

renbrauge commented 1 year ago

@patrikszekres I had the same issue, for me the issue was that I didn't create a client.

I found it like this: