12 comments
Comment actions Permalink

Still does not work for me...
Can not check in!

0
Comment actions Permalink

I'm having trouble connecting with your plugin. I always get the error:
C:\p4Data\furgalj1\MX\Mainline\Code\UltraLite\src\com\lakeviewtech\dr1\cc\ControlCenterFrame.java
Error: java.io.IOException: Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to 192.168.10.28:2002 failed.
socket: 192.168.10.28:2002: WSAEPROVIDERFAILEDINIT

This is the correct IP and socket address for me. The Perforce GUI client and other Perforce plugins do work for me. Any ideas?

0
Comment actions Permalink

This lookes like a WinSock error. From what I can think of it now, this
looks like sometype of path problem. I will investigate more and let you
know if I find something.

-Dash.

"Jeff Furgal" <itnadmin@jetbrains.com> wrote in message
news:4727620.1039201241324.JavaMail.jrun@is.intellij.net...

I'm having trouble connecting with your plugin. I always get the error:

>
C:\p4Data\furgalj1\MX\Mainline\Code\UltraLite\src\com\lakeviewtech\dr1\cc\Co
ntrolCenterFrame.java

Error: java.io.IOException: Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to 192.168.10.28:2002 failed.
socket: 192.168.10.28:2002: WSAEPROVIDERFAILEDINIT

>

This is the correct IP and socket address for me. The Perforce GUI client

and other Perforce plugins do work for me. Any ideas?


0
Comment actions Permalink

Probably the plugin is not able to parse the output of the p4 fstat command.
please check the version I sent you and let me know if that works.

Thanks,
Dash.

"Igor Karpov" <igor.karpov@mail.ru> wrote in message
news:69593.1039189775038.JavaMail.jrun@is.intellij.net...

Still does not work for me...
Can not check in!



0
Comment actions Permalink

Jeff Furgal wrote:

I'm having trouble connecting with your plugin. I always get the error:
C:\p4Data\furgalj1\MX\Mainline\Code\UltraLite\src\com\lakeviewtech\dr1\cc\ControlCenterFrame.java
Error: java.io.IOException: Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to 192.168.10.28:2002 failed.
socket: 192.168.10.28:2002: WSAEPROVIDERFAILEDINIT

This is the correct IP and socket address for me. The Perforce GUI client and other Perforce plugins do work for me. Any ideas?


This is the same error that I had with the exec() problem in the perforce library.
Did you get around to patching the exec() call in 0.3 Dash? I'm still running my patched 0.2.

- Gary

0
Comment actions Permalink

what was your fix gary ?
here is what I did in the latest version... If I got it correctly the
problem was with rt.exec when envp was null, right ? so in 0.3 I added a
null check before that. if thats not the case please send me your patched
file I will do a quick release.

Thanks,
Dash.

"Gary Evesson" <gevesson@decentrix.com> wrote in message
news:at2el9$q6p$1@is.intellij.net...

Jeff Furgal wrote:

I'm having trouble connecting with your plugin. I always get the error:

>

C:\p4Data\furgalj1\MX\Mainline\Code\UltraLite\src\com\lakeviewtech\dr1\cc\Co
ntrolCenterFrame.java

Error: java.io.IOException: Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to 192.168.10.28:2002 failed.
socket: 192.168.10.28:2002: WSAEPROVIDERFAILEDINIT

>

This is the correct IP and socket address for me. The Perforce GUI

client and other Perforce plugins do work for me. Any ideas?
>

This is the same error that I had with the exec() problem in the perforce

library.

Did you get around to patching the exec() call in 0.3 Dash? I'm still

running my patched 0.2.
>

- Gary

>


0
Comment actions Permalink

Debabrata Dash wrote:

what was your fix gary ?
here is what I did in the latest version... If I got it correctly the
problem was with rt.exec when envp was null, right ? so in 0.3 I added a
null check before that. if thats not the case please send me your patched
file I will do a quick release.


in P4Process.java:

line 260:
- p = rt.exec(cmd, this.environ.getEnvp());
+ p = rt.exec(cmd);

(please excuse the fake context diff...)

I'd guess that maybe it applies when the array is not null and empty?
That may explain the problem...

- Gary

0
Comment actions Permalink

Yes, removing the env variable from the rt.exec call worked. At line 286 in your latest source drop I now have:

if(envp != null)
p = rt.exec(cmd);
// p = rt.exec(cmd, envp);
else
p = rt.exec(cmd);

I suspect this is not the behavior you want, but it works.

If you want to tell me how to debug this for you, I can try to do so. I have not done any plugin development on Idea yet, so I am unsure of just what to do to see why the envp is causing problems in my environment.

Now that this works, this is quite a nice plugin

0
Comment actions Permalink

probably printing out the envp will show what values are there and why they
are causing problem... if you find something wierd in there please let me
know. I don't know a good way to debug the plugins either, I always have to
add lots of printlns and restart idea to checks where things are breaking.

I will change the code to remove envp calls, does not look like that is
needed anywhere.

Thanks,
-Dash.

"Jeff Furgal" <itnadmin@jetbrains.com> wrote in message
news:2510296.1039567393034.JavaMail.jrun@is.intellij.net...

Yes, removing the env variable from the rt.exec call worked. At line 286

in your latest source drop I now have:
>

if(envp != null)
p = rt.exec(cmd);
// p = rt.exec(cmd, envp);
else
p = rt.exec(cmd);

>

I suspect this is not the behavior you want, but it works.

>

If you want to tell me how to debug this for you, I can try to do so. I

have not done any plugin development on Idea yet, so I am unsure of just
what to do to see why the envp is causing problems in my environment.
>

Now that this works, this is quite a nice plugin



0
Comment actions Permalink

This is going to sound very stupid, but I can't seem to see the output for my envp display. I have put both System.out.println and Debug.Verbose calls in before the rt.exec, and set the loggong level to VERBOSE. I get no output window, and a search of the entire disk shows no log.txt file.

How do you do it?

Also, have you tried supporting Perforce job and named changelists?

Thanks,

Jeff

0
Comment actions Permalink

I start idea from idea.bat file so I have the console window where
everything is printed out. I don't know what to if you are starting from exe
. may be you can try using lo4j logging and that will go to the
$IDEA_HOME/system/logs/idea.log file.

named changelist is in the works. I have no plans for jobs yet, if there is
enough interest for that then I will add that feature.

-Dash.

"Jeff Furgal" <itnadmin@jetbrains.com> wrote in message
news:198180.1039584058973.JavaMail.jrun@is.intellij.net...

This is going to sound very stupid, but I can't seem to see the output for

my envp display. I have put both System.out.println and Debug.Verbose calls
in before the rt.exec, and set the loggong level to VERBOSE. I get no output
window, and a search of the entire disk shows no log.txt file.
>

How do you do it?

>

Also, have you tried supporting Perforce job and named changelists?

>

Thanks,

>

Jeff




0
Comment actions Permalink

Debabrata Dash wrote:

I start idea from idea.bat file so I have the console window where
everything is printed out. I don't know what to if you are starting from exe
. may be you can try using lo4j logging and that will go to the
$IDEA_HOME/system/logs/idea.log file.

named changelist is in the works. I have no plans for jobs yet, if there is
enough interest for that then I will add that feature.


If your running WinXP or Win2K, you'll find the log file in:

c:\Documents and Settings\\.IntellijIdea\system\log\idea.log Substituting for c: and ]]> with the appropriate values.

- Gary

0

Please sign in to leave a comment.