Reputation: 557
When I executed "p4 client" to make some changes in my workspace view on MacOS High Sierra for perforce, the changes were not saved and command "p4 client" at the prompt did not close (exit) when I closed the workspace-view file.
Can someone please tell me what I am missing/doing wrong? Thanks
Upvotes: 0
Views: 1954
Reputation: 337
For me, the p4 client
command was opening the tmp file in Sublime Text. When trying to save edits to the client workspace specification, ST would show the "Save As" window in the %USERPROFILE%\AppData\Local\Temp
directory. Saving the file there wasn't making the changes to the client spec.
To solve this, I edited the p4config.cfg
file in my workspace root. Since P4EDITOR
wasn't specified, I added the following line.
P4EDITOR="C:\Windows\system32\notepad.exe"
After doing this, p4 client
opens the client spec in notepad, and saving the file and closing it commits the changes to the spec as expected.
Upvotes: 0
Reputation: 11
In my configuration, p4 client <workspace_name>
opened TextMate (a GUI app), and simply saving and closing the document left the terminal waiting for changes.
The trick was to save and quit TextMate, and the client was saved correctly.
Upvotes: 1
Reputation: 557
I resolved my issue by deleting the existing workspace view and created a new workspace view. In the new workspace view, I simply mapped the depot to /my_workspace_view/. Before, I mapped the depot to /my_workspace_view///...
Upvotes: 1