error while processing a function, can't ping server

55 views
Skip to first unread message

didimitrov

unread,
Jun 17, 2012, 3:00:31 AM6/17/12
to eclim...@googlegroups.com
I am new to eclipse, and I recently decided to start using it extensively. Everything was fine until I decided to :PingEclim. I received a strange set of messages. I doubt the problem is in eclim, so I am trying to figure out what I have messed up. The eclim server is running for sure.
This is on my Windows machine.
Windows 7 Home Premium
Eclipse Indigo Service Release 2(Build id: 20120216-1857)
GVim 7.3.46
Eclim 1.7.6

Any ideas are welcomed. Thanks!

Eric Van Dewoestine

unread,
Jun 17, 2012, 8:13:39 AM6/17/12
to eclim...@googlegroups.com
> <https://lh3.googleusercontent.com/-g7jBcPqnM-c/T91_7TKQamI/AAAAAAAAABg/insGbFhGwa4/s1600/zcrcV.jpg>

Can you run the following command:

:let g:EclimLogLevel=10

then try running :PingEclin again and eclim with include some
additional trace output that you can see by running :messages. Can you
post a few of the lines that are printed before the error message
(there should be one starting with "system: " which is the actual
eclim call to the daemon). It looks like there might be some sort of
problem with the command that is run on the console.

Can you also start gvim with the minimal environment to see if
:PingEclim fails there as well:

> %PATH_TO_YOUR_GVIM%\gvim -u NONE -U NONE --cmd "set nocp | sy on | filetype plugin indent on | ru plugin/eclim.vim"

--
eric

didimitrov

unread,
Jun 18, 2012, 1:07:44 AM6/18/12
to eclim...@googlegroups.com

Hey Eric,
Thank you for the prompt response. I tried everything that you suggested, but even after starting gVim with minimal setup I still got the message. This is the screen shot of the message after I set the Log Level to 10.










My computer's user name contains an & symbol. I am thinking this might be breaking the paths somewhere.I understand that you are busy, so thank you again for responding that quickly. Let me know if I can provide you with any other information.

dimitar

Eric Van Dewoestine

unread,
Jun 18, 2012, 10:35:04 AM6/18/12
to eclim...@googlegroups.com
On 2012-06-17 22:07:44, didimitrov wrote:
>
>
> Hey Eric,
> Thank you for the prompt response. I tried everything that you suggested,
> but even after starting gVim with minimal setup I still got the message.
> This is the screen shot of the message after I set the Log Level to 10.
>
> <https://lh4.googleusercontent.com/-TOYYcz7cv3k/T96185seXgI/AAAAAAAAACI/McTLhuDSnpI/s1600/tt.jpg>
>
>
>
>
>
>
>
>
>
> My computer's user name contains an & symbol. I am thinking this might be
> breaking the paths somewhere.

That could very well be the problem.

We can test if that's the case by first seeing if you can run any
system command (start vim with the bare environment just to continue
to rule out any other settings/plugins):

> %PATH_TO_YOUR_GVIM%\gvim -u NONE -U NONE --cmd "set nocp"
:echo system('echo test')

If that fails, then you can quit gvim and try changing the value or
your TMP environment variable (run all these in the same dos shell):

> mkdir C:\tmp
> set TMP=C:\tmp
> %PATH_TO_YOUR_GVIM%\gvim -u NONE -U NONE --cmd "set nocp"
:echo system('echo test')

With any luck that last system call will now succeed. If so then we've
confirmed that the '&' in your user name was the problem, and you can
change your system's TMP var globally. I have no idea where in Windows
7 you change environment variables, but on XP it's found in:
Control Panel > System > the "Advanced" tab > the "Environment
Variables" button > the "User Variables for ..." section.
> --
> You received this message because you are subscribed to the Google Groups "eclim-user" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/eclim-user/-/n36PG-fyeREJ.
> To post to this group, send email to eclim...@googlegroups.com.
> To unsubscribe from this group, send email to eclim-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/eclim-user?hl=en.
>

--
eric

didimitrov

unread,
Jun 19, 2012, 3:08:43 AM6/19/12
to eclim...@googlegroups.com
Hi Eric,
This is sad. It was not even an eclim issue and you helped me resolve it. After I changed my TMP environmental variable I gave myself a major face palm. It worked perfectly. I am guessing the inability of Vim to write the temp was messing with the nailgun server. It was definitely the path. I traced some other things too, but I managed to resolve those.

For those who may need to find their environmental variables on Win 7. Right-click on My Computer->Properties->On the left-hand side click on Advanced System Settings->Environmental Variables at the bottom of the dialog window->click on TMP->click on Edit.

Good luck.

Thank you so much Eric. Eclim is insanely helpful to somebody like me who likes Vim, but has to deal with Eclipse once in a while. Nothing against Eclipse, just Vim works better for me.

dimitar
> To unsubscribe from this group, send email to eclim-user+unsubscribe@googlegroups.com.

Eric Van Dewoestine

unread,
Jun 20, 2012, 10:30:01 AM6/20/12
to eclim...@googlegroups.com
On 2012-06-19 00:08:43, didimitrov wrote:
> Hi Eric,
> This is sad. It was not even an eclim issue and you helped me resolve it.
> After I changed my TMP environmental variable I gave myself a major face
> palm. It worked perfectly. I am guessing the inability of Vim to write the
> temp was messing with the nailgun server. It was definitely the path.

It was definitely a subtle issue and I probably wouldn't have caught
the cause for a while if you hadn't mentioned the '&' in your user
name :)

Ben Fritz was kind enough to bring up the issue[1] on the vim-dev
mailing list, so hopefully it will be fixed in vim so that you and
others won't have to resort to modifying your TMP var to get vim's
system() function to work in the future.

> I traced some other things too, but I managed to resolve those.
>
> For those who may need to find their environmental variables on Win 7.
> Right-click on My Computer->Properties->On the left-hand side click on
> Advanced System Settings->Environmental Variables at the bottom of the
> dialog window->click on TMP->click on Edit.
>
> Good luck.
>
> Thank you so much Eric. Eclim is insanely helpful to somebody like me who
> likes Vim, but has to deal with Eclipse once in a while. Nothing against
> Eclipse, just Vim works better for me.
>
> dimitar

[1] https://groups.google.com/d/topic/vim_dev/dkIj30yEJ3c/discussion
> > eclim-user+...@googlegroups.com.
> > > For more options, visit this group at
> > http://groups.google.com/group/eclim-user?hl=en.
> > >
> >
> > --
> > eric
> >
>
> --
> You received this message because you are subscribed to the Google Groups "eclim-user" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/eclim-user/-/GMbSxFi-Eg4J.
> To post to this group, send email to eclim...@googlegroups.com.
> To unsubscribe from this group, send email to eclim-user+...@googlegroups.com.

didimitrov

unread,
Jun 20, 2012, 11:14:09 PM6/20/12
to eclim...@googlegroups.com
I am glad it worked out. I am extremely happy with eclim now. :)

Also, thank you Ben for posting that on the vim-dev list.

dimitar
> > eclim-user+unsubscribe@googlegroups.com.
> > > For more options, visit this group at
> > http://groups.google.com/group/eclim-user?hl=en.
> > >
> >
> > --
> > eric
> >
>
> --
> You received this message because you are subscribed to the Google Groups "eclim-user" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/eclim-user/-/GMbSxFi-Eg4J.
> To post to this group, send email to eclim...@googlegroups.com.
> To unsubscribe from this group, send email to eclim-user+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages