Error: -editor option

21 views
Skip to first unread message

Charles Capps

unread,
Apr 11, 2012, 1:01:19 AM4/11/12
to eclim-user
I just upgraded to version 1.7.3 of eclim. I had to completely
uninstall eclipse to avoid an error. I also removed ~/.eclim and
~/.eclipse and ~/.vim/eclim.

Now the installation works, but when I try to run any command under
VIM, I get this error:

(0s) system: "/home/charles/.eclipse/
org.eclipse.platform_3.7.0_155965261/eclim" --nailgun-port 9091 -
editor vim -command ping
Unrecognized option: -editor
while executing command (port: 9091): -editor vim -command ping

The eclimd output says:
NGSession 2: 127.0.0.1: org.eclim.command.Main exited with status 1

I tried running the same command without the -editor vim option and it
successfully pinged eclim. Any idea why eclim is prepending the "-
editor" option and it's failing??

Thanks,
Charles

Eric Van Dewoestine

unread,
Apr 11, 2012, 9:46:02 AM4/11/12
to eclim...@googlegroups.com
On 2012-04-10 22:01:19, Charles Capps wrote:
> I just upgraded to version 1.7.3 of eclim. I had to completely
> uninstall eclipse to avoid an error.

What was the error?

> I also removed ~/.eclim and
> ~/.eclipse and ~/.vim/eclim.
>
> Now the installation works, but when I try to run any command under
> VIM, I get this error:
>
> (0s) system: "/home/charles/.eclipse/
> org.eclipse.platform_3.7.0_155965261/eclim" --nailgun-port 9091 -
> editor vim -command ping
> Unrecognized option: -editor
> while executing command (port: 9091): -editor vim -command ping
>
> The eclimd output says:
> NGSession 2: 127.0.0.1: org.eclim.command.Main exited with status 1
>
> I tried running the same command without the -editor vim option and it
> successfully pinged eclim.

What the result of the successful ping from the command line?

> Any idea why eclim is prepending the "-
> editor" option and it's failing??

That option was introduced in 1.7.3 to allow the server side to deal
with discrepancies between different editor clients. The only reason I
can think why it would fail is if your eclim daemon is still at
version 1.7.2 while the vim side is now at 1.7.3.

> Thanks,
> Charles

--
eric

Charles Capps

unread,
Apr 11, 2012, 12:53:46 PM4/11/12
to eclim-user
You're right, it was stuck at 1.7.2. I purged eclipse, deleted all
eclim directories, and then I did "sudo rm -r /usr/lib/eclipse". There
were still some eclim classes in there that weren't overwritten for
some reason (?)

After reinstalling it now works.

Thanks!

Charles Capps

unread,
Apr 11, 2012, 12:58:46 PM4/11/12
to eclim-user
Maybe put something in the tutorial about how when upgrading you might
have to manually delete some eclipse libs? The installer claims it
will remove all old versions of eclim but doesn't appear to succeed.

Eric Van Dewoestine

unread,
Apr 12, 2012, 10:46:16 AM4/12/12
to eclim...@googlegroups.com
On 2012-04-11 09:58:46, Charles Capps wrote:
> Maybe put something in the tutorial about how when upgrading you might
> have to manually delete some eclipse libs? The installer claims it
> will remove all old versions of eclim but doesn't appear to succeed.

What looks like the issue for you was that you installed eclim 1.7.2
into the eclipse home dir (/usr/lib/eclipse ... as root?) but
installed eclim 1.7.3 to the user local eclipse path, so the installer
only looked at the latter location for an older version of eclim to
remove.

A quick fix would be to have the installer check and warn if eclim
is found in the eclipse home, but you are about to install it in the
user local path, which I'll probably add, but I also have an alternate
solution that will hopefully let eclipse's p2 directory resolve this
issue.

--
eric

Charles Capps

unread,
Apr 12, 2012, 12:13:24 PM4/12/12
to eclim-user
Hmm. It seems when I install eclipse from "sudo apt-get" it puts the
libraries in /usr/lib. Then eclim put libraries there--I'm pretty sure
when I did "java -jar eclim...jar" without running as root.

This time around, I just downloaded the eclipse files and put them in
my home dir. Updated my ECLIPSE_HOME manually, etc. Then when I
installed eclim it was fine.

I suppose I'm not an expert on the subleties of where various programs
will install their files, but as you suggest maybe some error message
will help other users.
Reply all
Reply to author
Forward
0 new messages