From: Bart N. <ba...@tr...> - 2010-04-27 15:33:21
|
Hi, folks. I'm trying to set up vimplugin. I've installed it on a version of Eclipse called SpringSource Tool Suite (a requirement for this project). I'm very new to Eclipse -- if I had my way I'd be using console vim and compiling with shell scripts... I'm running Ubuntu 9.10. I have gvim 7.2. gvim --version | grep netbeans returns the following: +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra +perl +postscript so it has Netbeans support. I saw on the installation instructions that I need "PDE" so I searched and installed this: PDE/API Tools Environment Descriptions 1.0.0.v20090512-7C-0F9JgLMsM0MXAWLrL The first time I tried to open a file from Eclipse in vim (it's from a read only SVN repository in case that's relevant) it seemed to freeze for a while and I got a whole bunch of console output (I had started Eclipse from the command line). Eventually the file opened in the standard Eclipse editor and there was another tab with this error output: Could not open the editor: org.eclipse.team.svn.ui.repository.RepositoryFileEditorInput cannot be cast to org.eclipse.ui.IFileEditorInput Clicking for more details gave this backtrace: java.lang.ClassCastException: org.eclipse.team.svn.ui.repository.RepositoryFileEditorInput cannot be cast to org.eclipse.ui.IFileEditorInput at org.vimplugin.editors.AbstractVimEditor.createPartControl(AbstractVimEditor.java:148) 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.EditorReference.getEditor(EditorReference.java:286) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2857) 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.team.svn.ui.operation.OpenRemoteFileOperation.openEditor(OpenRemoteFileOperation.java:177) at org.eclipse.team.svn.ui.operation.OpenRemoteFileOperation.openFile(OpenRemoteFileOperation.java:161) at org.eclipse.team.svn.ui.operation.OpenRemoteFileOperation$2$1.run(OpenRemoteFileOperation.java:115) at org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doSubTask(ProgressMonitorUtility.java:118) at org.eclipse.team.svn.core.operation.AbstractActionOperation.protectStep(AbstractActionOperation.java:146) at org.eclipse.team.svn.core.operation.AbstractActionOperation.protectStep(AbstractActionOperation.java:141) at org.eclipse.team.svn.ui.operation.OpenRemoteFileOperation.access$0(OpenRemoteFileOperation.java:1) at org.eclipse.team.svn.ui.operation.OpenRemoteFileOperation$2.run(OpenRemoteFileOperation.java:113) at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:155) at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3468) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3115) 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) Subsequent attempts to open a file give the same result but are much quicker. Full console output follows. Trying to start vim Server started and listening Started vim Waiting to connect to vim server… (above line repeats 94 times) Connection established 0:version=0 "2.4" 0:startupDone=0 dispose() close( true ); 0:disconnect=6 0:disconnect=6 Trying to start vim Server started and listening Started vim Waiting to connect to vim server… Connection established 0:version=0 "2.4" 0:startupDone=0 dispose() close( true ); 0:disconnect=13 0:disconnect=13 Any help would be much appreciated. --bart nagel |