opening embedded gvim fails

122 views
Skip to first unread message

cjf...@gmail.com

unread,
Jun 17, 2009, 4:24:04 PM6/17/09
to eclim-user
Hi all.

I get an error when trying to open file in embedded gvim window:

Error:
===========================
Could not open the editor: The gvim executable appears to not be
supported or the gvim executable could not be invoked.

Please make sure that the path you configured for gvim points to a
valid gvim executable.

If the path is valid, make sure that gvim was compiled with netbeans
support (with the netbeans_intg flag).

For more details on gvim execution you can also open the debug console
in:
Window -> Show View -> Other -> Eclim -> Vimplugin Debug Console
===========================


Details:
===========================
java.lang.RuntimeException: The gvim executable appears to not be
supported or the gvim executable could not be invoked.

Please make sure that the path you configured for gvim points to a
valid gvim executable.

If the path is valid, make sure that gvim was compiled with netbeans
support (with the netbeans_intg flag).

For more details on gvim execution you can also open the debug console
in:
Window -> Show View -> Other -> Eclim -> Vimplugin Debug Console
at org.vimplugin.editors.VimEditor.createPartControl(VimEditor.java:
179)
at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:662)
at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:462)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible
(PresentablePart.java:180)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select
(PresentablePartFolder.java:270)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select
(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart
(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection
(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:
1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor
(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout
(EditorAreaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor
(EditorAreaHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:778)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor
(EditorManager.java:677)
at org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:638)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2854)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2762)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:
2754)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:
2705)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2701)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2685)
at
org.eclipse.dltk.internal.ui.actions.OpenModelElementWithMenu.openEditor
(OpenModelElementWithMenu.java:339)
at
org.eclipse.dltk.internal.ui.actions.OpenModelElementWithMenu.access$0
(OpenModelElementWithMenu.java:331)
at org.eclipse.dltk.internal.ui.actions.OpenModelElementWithMenu
$2.handleEvent(OpenModelElementWithMenu.java:197)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
===========================


Message in Vimplugin debug console:
===========================
2009-06-17 22:55:55,021 DEBUG [org.vimplugin.VimPlugin] Checking gvim
for embed support.
2009-06-17 22:55:55,074 DEBUG [org.vimplugin.VimPlugin] [/usr/bin/
gvim, -f, -X, -u, NONE, -U, NONE, --cmd, redir! > /tmp/
eclim_gvim591001996647812354.tmp | silent! echo v:version >= 700 |
quit]
2009-06-17 22:55:55,164 DEBUG [org.vimplugin.VimPlugin] gvim feature
supported: 1
2009-06-17 22:55:55,164 DEBUG [org.vimplugin.VimPlugin] Checking gvim
for netbeans support.
2009-06-17 22:55:55,165 DEBUG [org.vimplugin.VimPlugin] [/usr/bin/
gvim, -f, -X, -u, NONE, -U, NONE, --cmd, redir! > /tmp/
eclim_gvim8647955435835450712.tmp | silent! echo has('netbeans_intg')
| quit]
2009-06-17 22:55:55,243 DEBUG [org.vimplugin.VimPlugin] gvim feature
supported: 0
===========================

I'm using gentoo linux with eclipse distr eclipse-php-galileo-RC4-
linux-gtk

It looks like gvim invoking command line a bit wrong:

/usr/bin/gvim, -f, -X, -u, NONE, -U, NONE, --cmd, redir! > /tmp/
eclim_gvim591001996647812354.tmp | silent! echo v:version >= 700 |
quit

IMHO using comma as delimiter is fail.

Anyway I'm beginner in eclipse ... need assist.

PS (sorry for my eng)

Regards,
Evgeny.

Eric Van Dewoestine

unread,
Jun 17, 2009, 4:30:50 PM6/17/09
to eclim...@googlegroups.com

On gentoo you need to add the 'netbeans' use flag and then re-compile
gvim:

$ sudo echo "app-editors/gvim netbeans" >> /etc/portage/package.use
$ sudo emerge -av gvim

After re-compiling then eclim should be able to properly embed gvim
inside of eclipse.

--
eric

cjf...@gmail.com

unread,
Jun 17, 2009, 5:03:45 PM6/17/09
to eclim-user
Thx, problem is sorted.

On 17 июн, 23:30, Eric Van Dewoestine <ervan...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages