为了在 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