Intellij Perforce Integration Connection Error

I am trying to integrate Perforce into IntelliJ. I have successfully done this in the past, but on my new machine I was unsuccessful.

I am using p4v client. I have this client connected to my Perforce server and I can check the code, etc. Through him.

I have two problems that can shed light on the problem.

  • On the settings page → Version Control → Perforce there is no test connection.
  • On the Settings → Control Version → Punch page, I set the location for my p4v client in my Applications folder. Path to p4 executable file: p4 (I also tried this as an empty text field) Path to pv4 executable file: /Applications/p4v.app/Contents/MacOS/pv4

I just put "p4" in the p4 client text box. So I set up my old environment. I also tried leaving the p4 command line command field blank. When I try to connect, I get an error message:

   Cannot Connect to the Perforce Server

   Cannot run program "p4" (in directory "...")

The reported directory is the location of the Project on my local machine. Not sure why it is trying to look in my root directory of the IntelliJ project for the p4 client. Also, I did not specify the path to the p4 command-line client and explicitly set the path to my p4v client, so I'm not sure why IntelliJ is trying to use the p4 command-line client at all. Also, I went ahead and downloaded the p4 command line client and placed it in / usr / local / bin, and still IntelliJ tried to grab the p4 client from the project root directory. I have confirmed that / usr / local / bin is on my PATH.

, IntelliJ, -, .

+3
1

p4, ? IntelliJ.

, which p4, .

p4, ( - ), which, IntelliJ.

p4 /opt/local/bin IntelliJ /opt/local/bin/p4 .

+5

All Articles