Problem with can not connect to Perforce Server

I upgraded intelliji idea from 12 to 14.1.5.  But Perfoce can not go online.

The error dialgo title is "Cannot connect to Perforce Server" with no error message.
2015-10-15_113939.png

The error log in ider.log says:

          2015-10-15 11:20:26,800 [5213811]   INFO - lication.PerforceInfoAndClient - Client unknown
          com.intellij.openapi.vcs.VcsException: Client unknown
          at org.jetbrains.idea.perforce.application.PerforceInfoAndClient.calcInfoMap(PerforceInfoAndClient.java:64)
          ....

But I am sure the clien in configuriton is correct.

I can login perfoce server using p4v with same configurtiaon.
2015-10-15_114057.png

And in Settings->Version Control->Perfoce  test connection is successful.
2015-10-15_113959.png

It also worked in version 12.

Any clue?

Any help would be gratefully appreciated!

Thank you
ZHOU NAN

11 comments
Comment actions Permalink

Could you please enable "Dump Perforce Commands to file" in IDE Perforce settings, attempt connecting again and attach the resulting p4.output file? If you're concerned about its privacy, you can file an issue at https://youtrack.jetbrains.com/issues#newissue and attach it there visible to idea-developers only.

0
Comment actions Permalink

Attach the p4.log.

But It seems there are no logs when I clicked "go online".

The log is all for "test connection".



Attachment(s):
p4.output.zip
0
Comment actions Permalink

Thanks. It looks like a bug in Perforce 2015.1 support that wil be fixed in IDEA 15. Could you please try pre-release IDEA 15 (https://confluence.jetbrains.com/display/IDEADEV/IDEA+15+EAP) and check if it works for you?

0
Comment actions Permalink

I try the pre-release IDEA 15.  It sitll did not work.
The error log in idea.log says

2015-10-16 15:55:41,540 [ 110787]   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:44)
 at org.jetbrains.idea.perforce.application.PerforceInfoAndClient.calcInfo(PerforceInfoAndClient.java:38)
 at org.jetbrains.idea.perforce.application.PerforceInfoAndClient.calculateInfos(PerforceInfoAndClient.java:131)
 at org.jetbrains.idea.perforce.perforce.ConfigPanel$2$2.run(ConfigPanel.java:136)
 at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:227)
 at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)

0
Comment actions Permalink

Is p4.output in IDEA 15 also empty when you click "Go online"?

When you see this empty dialog, could you please capture a jstack thread dump (https://intellij-support.jetbrains.com/hc/en-us/articles/206827507-Getting-a-thread-dump-when-IDE-hangs-and-doesn-t-respond) and attach it here?

0
Comment actions Permalink

Yes.The p4.output in IDEA 15 was also empty.

Attahch the dump log.

Thank you.



Attachment(s):
output.txt.zip
0
Comment actions Permalink

Thanks. Could you please add "#org.jetbrains.idea.perforce" to Help | Configure Debug Log Options attempt going online again and after that attach your idea.log (Help | Show log)? Please also attach a screenshot of Settings | Version Control.

0
Comment actions Permalink

idea.log



Attachment(s):
idea.log.zip
0
Comment actions Permalink

Thanks! If you invoke from the command line "p4 -zprog=IntelliJ_IDEA_login -p your_server:1666 -c nan.zhou_E5440 -u nan.zhou login", what's printed in the console? And if you do that without zprog part, is the result different?

0
Comment actions Permalink

No differernt . It all says"p4 can not support a wide charset unless P4COMMANDCHARSET is set to another charset."

And after I run  "p4 set P4COMMANDCHARSET=none". Restart IDEA. Perforce works:)

Thanks for your kindly help!

0
Comment actions Permalink

Thanks, we'll add a more clear error message for this case.

0

Please sign in to leave a comment.