Perforce连接问题(在WebStorm中)(无效命令:-zprog = intellij_idea_info)

时间:2018-05-09 14:27:53

标签: intellij-idea webstorm perforce

每次尝试通过WebStorm连接到perforce时,我都会收到错误。这是我的设置图片:

enter image description here

当我使用“测试连接”时,我会弹出一个显示Connection Problems: No client name in info specification found

的弹出窗口

点击“测试连接”后,这是p4.output和idea.log输出

p4.output

10:19:13 info 
10:19:13 
ErrCode=255
StdOut:------------
Unknown command or option flag passed.
p4vc help for usage.
Invalid command: -zprog=intellij_idea_info
StdErr:------------

End----------------

idea.log

2018-05-09 10:19:13,878 [7216927]   INFO - lication.PerforceInfoAndClient - No client name in info specification found 
com.intellij.openapi.vcs.VcsException: No client name in info specification found
    at org.jetbrains.idea.perforce.application.PerforceInfoAndClient.extractClient(PerforceInfoAndClient.java:41)
    at org.jetbrains.idea.perforce.application.PerforceInfoAndClient.calcInfo(PerforceInfoAndClient.java:27)
    at org.jetbrains.idea.perforce.application.PerforceInfoAndClient.calculateInfos(PerforceInfoAndClient.java:101)
    at org.jetbrains.idea.perforce.perforce.ConfigPanel$2.lambda$actionPerformed$1(ConfigPanel.java:130)
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:247)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:750)
    at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:434)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:157)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:580)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
    at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:565)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

我尝试过使用P4CONFIG文件而不是手动输入,但WebStorm找不到任何配置设置(这也很令人沮丧)。任何想法??

1 个答案:

答案 0 :(得分:1)

因此,如果我将p4可执行路径指向实际的p4命令会有所帮助。我在MacOS上,所以我在终端中运行了which p4,得到了路径(在我的情况下路径为/usr/local/bin/p4),将其放在Path to P4 executable输入框中,以及所有内容工作得很好!