PingEclim -- connection refused

444 views
Skip to first unread message

Harald Lapp

unread,
Dec 16, 2009, 5:24:49 AM12/16/09
to eclim-user
hello,

i'm having trouble getting things to work on OSX. when i
try :PingEclim in vim, all i get is:

unable to connect to eclimd (port: 9091) - connect: Connection
refused

however: i do not know why, because eclipse is running in eclimd view
and on commandline ping works as expected:

$ /Applications/eclipse/eclim -command ping
eclim 1.5.3
eclipse 3.5.1

:EclimValidate gives the expected output: Result: OK, required
settings are valid.

the same result when i start /Applications/eclipse/eclimd instead of
the gui eclipse ...

i'm using OSX 10.5 with vim 7.2.22

i've already increased log level in the log4j.xml of the eclimd plugin
for eclipse (to 'debug'), but that does not help, because the log-
entries for the command-line ping seems to be ok ...:

2009-12-16 11:16:13,462 DEBUG [org.eclim.command.Main] args: [-
command, ping]
2009-12-16 11:16:13,463 DEBUG [org.eclim.command.Main] Main - command:
ping

but i don't get any entries for the :PingEclim in vim.

any ideas what could be the problem?

thanks!

harald

Eric Van Dewoestine

unread,
Dec 16, 2009, 10:49:50 AM12/16/09
to eclim...@googlegroups.com
Hmm, that's very odd. Can you try the following steps:

1. turn on eclim debugging in vim:
:let g:EclimLogLevel = 10

2. run :PingEclim in vim

3. run :messages and send me the result

4. then run
:echo g:EclimNailgunClient
that should echo 'external', but if not let me know.

5. try setting the nailgun client to 'python':
:let g:EclimNailgunClient = 'python'

6. run :PingEclim again to see if it works now or not.

7. run :messages again and send me the results.

Hopefully this will give me enough info to get an idea of what may be
going wrong.

--
eric

Brendon

unread,
Dec 16, 2009, 11:09:19 AM12/16/09
to eclim-user
having the same issue here are the resuls
unable to connect to eclimd (port: 9091) - connect: Connection refused
unable to connect to eclimd (port: 9091) - connect: Connection refused
unable to connect to eclimd (port: 9091) - connect: Connection refused
unable to connect to eclimd (port: 9091) - connect: Connection refused
Result: OK, required settings are valid.
unable to connect to eclimd (port: 9091) - connect: Connection refused
unable to connect to eclimd (port: 9091) - connect: Connection refused
unable to connect to eclimd (port: 9091) - connect: Connection refused
unable to connect to eclimd (port: 9091) - connect: Connection refused
unable to connect to eclimd (port: 9091) - connect: Connection refused
unable to connect to eclimd (port: 9091) - connect: Connection refused
system: "/Applications/eclipse_zend/eclim" -Dnailgun.server.port=9091 -
command projects
unable to connect to eclimd (port: 9091) - connect: Connection refused
system: "/Applications/eclipse_zend/eclim" -Dnailgun.server.port=9091 -
command projects
unable to connect to eclimd (port: 9091) - connect: Connection refused
system: "/Applications/eclipse_zend/eclim" -Dnailgun.server.port=9091 -
command projects
unable to connect to eclimd (port: 9091) - connect: Connection refused
system: "/Applications/eclipse_zend/eclim" -Dnailgun.server.port=9091 -
command projects
unable to connect to eclimd (port: 9091) - connect: Connection refused
system: "/Applications/eclipse_zend/eclim" -Dnailgun.server.port=9091 -
command ping
unable to connect to eclimd (port: 9091) - connect: Connection
refused


4) It did echo external

5) The ping worked but when i tried the completion it gave me this
error,
nailgun.py (port: 9091): -command php_complete -p "LMS" -f
"application/controller/leads.php" -o 287 -e utf-8
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim..eclim#client#nailgun#Execute..eclim#client#python#nailgun#Execute:
line 12:
Traceback (most recent call last):
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim..eclim#client#nailgun#Execute..eclim#client#python#nailgun#Execute:
line 12:
File "<string>", line 2, in <module>
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim..eclim#client#nailgun#Execute..eclim#client#python#nailgun#Execute:
line 12:
ValueError: need more than 1 value to unpack
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim..eclim#client#nailgun#Execute..eclim#client#python#nailgun#Execute:
line 14:
E121: Undefined variable: result
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim..eclim#client#nailgun#Execute..eclim#client#python#nailgun#Execute:
line 14:
E15: Invalid expression: [retcode, result]
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim:
line 24:
E714: List required
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim:
line 25:
E121: Undefined variable: result
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim:
line 25:
E116: Invalid arguments for function substitute(result, '\n$', '', '')
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim:
line 25:
E15: Invalid expression: substitute(result, '\n$', '', '')

Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim:
line 37:
E121: Undefined variable: result
Error detected while processing function
eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim:


--Brendon

Harald Lapp

unread,
Dec 16, 2009, 11:30:05 AM12/16/09
to eclim-user
my output looks similar to brendons:

system: "/Applications/eclipse/eclim" -Dnailgun.server.port=9091 -
command projec
ts

unable to connect to eclimd (port: 9091) - connect: Connection refused
system: "/Applications/eclipse/eclim" -Dnailgun.server.port=9091 -
command ping

unable to connect to eclimd (port: 9091) - connect: Connection refused

:echo g:EclimNailgunClient

shows: "extern"

:let g:EclimNailgunClient = 'python'

and

:PingEclim

fails:

nailgun.py (port: 9091): -command projects
Error detected while processing function
eclim#PingEclim..eclim#eclipse#GetWorks
paceDir..eclim#ExecuteEclim..eclim#client#nailgun#GetNgPort..eclim#project#util#
GetProject..eclim#project#util#GetProjects..eclim#ExecuteEclim..eclim#client#nai
lgun#Execute..eclim#client#python#nailgun#Execute:
line 7:
E319: Sorry, the command is not available in this version: python <<
PYTHONEOF
line 8:
E182: Invalid command name
line 9:
E492: Not an editor command: (retcode, result) = client.send(command)
line 10:
E499: Empty file name for '%' or '#', only works with ":p:h":
vim.command('let r
...

may be there's something wrong with my python version, or did i
misinterpret the output? python version is: Python 2.5 (r25:51918, Sep
19 2006, 08:49:13)

thanx,

harald

Eric Van Dewoestine

unread,
Dec 16, 2009, 11:48:59 AM12/16/09
to eclim...@googlegroups.com
On Wed, Dec 16, 2009 at 08:09:19AM -0800, Brendon wrote:
> having the same issue here are the resuls
> system: "/Applications/eclipse_zend/eclim" -Dnailgun.server.port=9091 -
> command projects

Does running this command at a command prompt work for you?

$ "/Applications/eclipse_zend/eclim" \
-Dnailgun.server.port=9091 -command projects

Perhaps the addition of supplying the port explicitly is causing
issues on the mac.

> 5) The ping worked but when i tried the completion it gave me this
> error,
> nailgun.py (port: 9091): -command php_complete -p "LMS" -f
> "application/controller/leads.php" -o 287 -e utf-8
> Error detected while processing function
> eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim..eclim#client#nailgun#Execute..eclim#client#python#nailgun#Execute:
> line 12:
> Traceback (most recent call last):
> Error detected while processing function
> eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim..eclim#client#nailgun#Execute..eclim#client#python#nailgun#Execute:
> line 12:
> File "<string>", line 2, in <module>
> Error detected while processing function
> eclim#php#complete#CodeComplete..eclim#lang#CodeComplete..eclim#ExecuteEclim..eclim#client#nailgun#Execute..eclim#client#python#nailgun#Execute:
> line 12:
> ValueError: need more than 1 value to unpack

I can't reproduce this and unfortunately vim's stack trace doesn't
show the python line where the error occurred. I'd like to
troubleshoot this, but first I'd like to focus on the external client.

--
eric

Eric Van Dewoestine

unread,
Dec 16, 2009, 11:52:40 AM12/16/09
to eclim...@googlegroups.com
On Wed, Dec 16, 2009 at 08:30:05AM -0800, Harald Lapp wrote:
> my output looks similar to brendons:
>
> system: "/Applications/eclipse/eclim" -Dnailgun.server.port=9091 -
> command projec
> ts

Can you also try running this command in a shell:

$ "/Applications/eclipse/eclim" \
-Dnailgun.server.port=9091 -command projects

Like I mentioned in my response to brendon, I'm curious if the passing
the port number in explicitly is causing problems on the mac.

> :let g:EclimNailgunClient = 'python'
>
> and
>
> :PingEclim
>
> fails:
>
> nailgun.py (port: 9091): -command projects
> Error detected while processing function
> eclim#PingEclim..eclim#eclipse#GetWorks
> paceDir..eclim#ExecuteEclim..eclim#client#nailgun#GetNgPort..eclim#project#util#
> GetProject..eclim#project#util#GetProjects..eclim#ExecuteEclim..eclim#client#nai
> lgun#Execute..eclim#client#python#nailgun#Execute:
> line 7:
> E319: Sorry, the command is not available in this version: python <<
> PYTHONEOF
> ...
>
> may be there's something wrong with my python version, or did i
> misinterpret the output? python version is: Python 2.5 (r25:51918, Sep
> 19 2006, 08:49:13)

Looks like your version of vim doesn't have python support enabled.
You can validate this by running the following:

:echo has('python')

That will print 1 if python support is available or 0 otherwise.

--
eric

Eric Van Dewoestine

unread,
Dec 16, 2009, 12:27:17 PM12/16/09
to eclim...@googlegroups.com
On Wed, Dec 16, 2009 at 08:30:05AM -0800, Harald Lapp wrote:
> my output looks similar to brendons:
>
> system: "/Applications/eclipse/eclim" -Dnailgun.server.port=9091 -
> command projec
> ts

I think I've resolved the issue. Can you grab the latest eclim
script?

$ cd $ECLIPSE_HOME/plugins/org.eclim_1.5.3/bin
$ rm eclim
$ wget http://github.com/ervandew/eclim/raw/master/src/shell/eclim
$ chmod a+x eclim

The issue is that sed on the mac isn't compatible with the patterns
I'm supplying, so I had to work around the issue a bit.

Let me know if the updated file fixes the issue. If all is well, then
I'll be getting a new eclim release ready for this weekend.

--
eric

Harald Lapp

unread,
Dec 16, 2009, 3:20:41 PM12/16/09
to eclim-user
yes, there seems a problem with cli vim and python. i've tried with
macvim and ping works after setting g:EclimNailgunClient to "python".
however, i've downloaded the latest eclim script as you recommended
and now it works with EclimNailgunClient "external", too -- at
least :PingEclim does -- will continue testing tomorrow :-).

<-harald


On 16 Dez., 18:27, Eric Van Dewoestine <ervan...@gmail.com> wrote:
> On Wed, Dec 16, 2009 at 08:30:05AM -0800, Harald Lapp wrote:
> > my output looks similar to brendons:
>
> > system: "/Applications/eclipse/eclim" -Dnailgun.server.port=9091 -
> > command projec
> > ts
>
> I think I've resolved the issue.  Can you grab the latest eclim
> script?
>
> $ cd $ECLIPSE_HOME/plugins/org.eclim_1.5.3/bin
> $ rm eclim
> $ wgethttp://github.com/ervandew/eclim/raw/master/src/shell/eclim

Brendon

unread,
Dec 16, 2009, 3:44:14 PM12/16/09
to eclim-user
yeah the new file worked for me, thanks

On Dec 16, 12:27 pm, Eric Van Dewoestine <ervan...@gmail.com> wrote:
> On Wed, Dec 16, 2009 at 08:30:05AM -0800, Harald Lapp wrote:
> > my output looks similar to brendons:
>
> > system: "/Applications/eclipse/eclim" -Dnailgun.server.port=9091 -
> > command projec
> > ts
>
> I think I've resolved the issue.  Can you grab the latest eclim
> script?
>
> $ cd $ECLIPSE_HOME/plugins/org.eclim_1.5.3/bin
> $ rm eclim
> $ wgethttp://github.com/ervandew/eclim/raw/master/src/shell/eclim
Reply all
Reply to author
Forward
0 new messages