为了在VIM中使用eclim,我已经安装了eclim(通过arch linux aur package)并安装了eclipse-dltk-ruby。我想在服务器上使用它,所以我的设置是无头的。
但:ProjectCreate ./ -n ruby
命令仍会返回java.lang.IllegalArgumentException: Unable to find nature for alias 'ruby'. Supported aliases include: cpp=org.eclipse.cdt.core.ccnature, c=org.eclipse.cdt.core.cnature, c++=org.eclipse.cdt.core.ccnature while executing command (port: 9091): -editor vim -command project_create -"/home/user/" -n ruby
eclimd
中的详细日志:
java.lang.IllegalArgumentException: Unable to find nature for alias 'ruby'. Supported aliases include:
at org.eclim.plugin.core.project.ProjectManagement.create(ProjectManagement.java:156)
at org.eclim.plugin.core.command.project.ProjectCreateCommand.execute(ProjectCreateCommand.java:
at org.eclim.command.Main$1.run(Main.java:100)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3794)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3433)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:101
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
at org.eclim.eclipse.EclimApplication.start(EclimApplication.java:128)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLaunche
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:10
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
可能应该有一些配置在eclim(或Eclipse)中启用Ruby插件。但是官方安装指南没有提到它。
无论如何,当我运行Eclipse本身时,我可以在Eclipse的配置中看到Ruby部分:
有eclimd
的初始日志:http://pastie.org/10750800