What to enter into “Client” field in the Perforce setup dialog in IntelliJ IDEA 10.5?

落爺英雄遲暮 提交于 2019-12-05 15:37:47

问题


I'm trying to set up Perforce integration in IntelliJ IDEA 10.5.2. There is a field named "Client" that doesn't make sense to me. I get the message "Connection problems: Client Unknown" whatever I type into the field. What should I enter into that field?


回答1:


You need to enter the name of your Perforce workspace.

If you have set up the command line tool correctly you may run p4 set P4CLIENT on the command-line.

If you use the P4V GUI tool, the workspace name is easily found.




回答2:


Open P4V and connect. On the top left, above everything, there are your:

[client], [port], [user] - Perforce P4V

They often look something like:

[client] ~ [your-name]_[random-letters-and-numbers]

[port] ~ [url]:[number]

[user] ~ [your-name]

Enter them in IntelliJ and press Apply.


Edit:

If you only see

[port], [user] - Perforce P4V

you need to go to Connection -> New workspace... and create a workspace.




回答3:


http://www.perforce.com/perforce/doc.current/manuals/intro/index.html before you go any further. Always start by reading the docs, you'll be a lot happier.




回答4:


You need to enter the local Workspace name into the dialog in Webstorm Options / Preferences to integrate it with Perforce.

In P4V, you can find this by looking at View > Workspace Tree, and then selecting the workspace you are trying to integrate.

Background: I'm setting up Perforce with Webstorm v2016.1 just now. I tried using the name of the workspace stream on the server at first, which kept giving me a "Client Unknown" error. This fixed the issue and allowed the connection to go through.



来源:https://stackoverflow.com/questions/8399936/what-to-enter-into-client-field-in-the-perforce-setup-dialog-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!