Patch creation using P4Eclipse plugin fails with Perforce Invalid or Unset Password (P4PASSWD)

I searched and saw a couple of semi-persistent messages, but not specifically for the P4Eclipse plug-in in OS X. I was able to create a patch from the command line, but I would like to get a plug-in, since it will make my life a lot easier. Any help is appreciated.

I am trying to create a patch that will be used to check the code before committing. To do this, I right-click my project in the package explorer, and then go through "Team> Create Patch" to open the patch creation wizard. I select the export location by providing the path to the file system, then select the files that I would like to include in my patch, and then specify the path to the p4 executable. I click Finish, and the Patch Failed dialog box appears with a few exceptions that are the same and say "Bug Fix: Perforce password (P4PASSWD) is invalid or not set."

This is the most useful link I found, but I'm not sure what it says. Thanks in advance.

+4
source share
2 answers

I had the same problem, and setting the command to point to the user batch file and recording what was passed to the command, I realized what was happening. The problem is that the Eclipse plugin passes the password to the p4 command using the -P option, and if perforce is set to disable passwords this way, you will see that the Perforce password (P4PASSWD) is invalid or not set. "Error. If you use first: p4 login, he will create a ticket, and you will not need to specify a password.

, , -P , Eclipse p4.exe:

p4-pw.cmd:

@SETLOCAL ENABLEEXTENSIONS
@SHIFT /7
@SHIFT /7
"C:\Program Files (x86)\Perforce\p4.exe" %1 %2 %3 %4 %5 %6 %7 %8 %9
+3

, P4PASSWD (Windows) . .

0

Source: https://habr.com/ru/post/1530485/


All Articles