ericmartel / Sublime-Text-3-Perforce-Plugin

21 stars 22 forks source link

Various commands fail with P4V 2020.2 #27

Open benh57 opened 4 years ago

benh57 commented 4 years ago

P4V 2020.2 removed -cmd which breaks the 'View File History' 'Time Lapse View' and other options in this plugin.

The unsupported P4V command syntax, "p4v -cmd" (described in https://community.perforce.com/s/article/2871) will be discontinued in P4V 2020.2. The actions available with the '-cmd' flag can be replaced by P4VC commands. We will continue to support the "p4v -s" and "p4v -t" functionality described in the preceding KB article.

https://www.perforce.com/perforce/doc.current/user/p4vnotes.txt

Since this plugin seems unmaintained, we may make a fork to fix this. Figured i'd bug it here for documentation.

shish456 commented 3 years ago

I worked around this issue on my local computer by going to Preferences / Browse Packages / Perforce. Modified Perforce.py, and changed this line:

command = "p4v.exe -p {} -c {} -u {} -cmd \"{} {}\"".format(port, client, userName, command, fileName)

to:

command = "p4vc.bat -p {} -c {} -u {} {} {}".format(port, client, userName, command, fileName)

See also:

https://community.perforce.com/s/article/2871
https://community.perforce.com/s/article/15316