我正在使用我的第一个scala-play2框架应用程序(hello world)。它工作正常。但在eclipse中导入项目后,我尝试打开routes
文件。我得到的就是这个:
org.eclipse.core.runtime.CoreException: Plug-in "org.scala-ide.play2" was unable to instantiate class "org.scalaide.play2.routeeditor.RouteEditor".
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:265)
at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:235)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:283)
因此,截至目前,我正在普通文本编辑器中打开routes
文件。
请让我知道如何在RouteEditor中打开此文件。
答案 0 :(得分:0)
正如your comment中所提到的,你已经在Eclipse Juno上运行了Eclipse Indigo的play插件。为了避免这种问题,请在Scala-IDE download page上非常仔细地选择正确的更新站点,然后只为您建议兼容的插件。