Submitted by jmachacek@gmail.com:
I attempted to set up Vimplugin in Eclipse on Ubuntu Hardy Heron (8.04LTS). The installation goes okay, but when I try to open a file using the Vimplugin Eclipse hangs and I see this on the command line that I used to launch Eclipse:
searching for compatible vm...
testing /usr/lib/jvm/java-gcj...found
Trying to start vim
Started vim
Waiting to connect to vim server…
Waiting to connect to vim server…
Waiting to connect to vim server…
Server started and listening
Waiting to connect to vim server…
Waiting to connect to vim server…
Waiting to connect to vim server…
Waiting to connect to vim server…
Waiting to connect to vim server…
Waiting to connect to vim server…
Vimplugin never manages to establish a connection to the vim server. However...
At this point, if I run ps -aux I find:
1001 5847 0.1 0.6 25048 6748 pts/2 S+ 13:51 0:00 /usr/bin/gvim -nb:localhost:3219:3nth1217 -f --socketid 69208516
If I copy and paste that 'gvim' command in another terminal window, Eclipse connects to the new server:
Waiting to connect to vim server…
Waiting to connect to vim server…
Waiting to connect to vim server…
Connection established
0:version=0 "2.4"
0:startupDone=0
0:fileOpened=0 "/home/jmachacek/workspace/Temp/temp.cpp" T F
0:fileOpened=0 "/home/jmachacek/workspace/Temp/temp.cpp" T F
2:remove=8 0 0
2:remove=8 0 0
0 REMOVE 0
2:insert=8 0 "t"
2:insert=8 0 "t"
t INSERT 0
t
However, shortly after that Vim segfaults and the Eclipse editor screen goes black.
Eclipse command line output:
2:remove=8 0 8
2:remove=8 0 8
0 REMOVE 8
Exception in thread "Thread-4" org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3374)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.SWT.error(SWT.java:3268)
at org.eclipse.swt.widgets.Widget.error(Widget.java:434)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:252)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:338)
at org.eclipse.jface.window.Window.createShell(Window.java:482)
at org.eclipse.jface.window.Window.create(Window.java:425)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1124)
at org.eclipse.jface.window.Window.open(Window.java:785)
at org.eclipse.jface.dialogs.MessageDialog.openError(MessageDialog.java:322)
at org.vimplugin.editors.AbstractVimEditor.message(AbstractVimEditor.java:591)
at org.vimplugin.editors.AbstractVimEditor.removeDocumentText(AbstractVimEditor.java:530)
at org.vimplugin.listeners.TextRemoved.handleEvent(TextRemoved.java:36)
at org.vimplugin.VimConnection.run(VimConnection.java:137)
at java.lang.Thread.run(libgcj.so.81)
dispose()
close( true );
Vim output:
Vim: Caught deadly signal SEGV
Vim: preserving files...
Vim: Finished.
Segmentation fault
Logged In: NO
I should mention that this is with Eclipse 3.2 and Vim 7.1:
$ gvim --version
VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 31 2008 12:00:11)
Included patches: 1-138