Scala-IDE和Eclipse Juno的代码完成问题

Tim*_*mka 11 eclipse scala code-completion scala-ide eclipse-juno

我正在使用Eclipse Juno和Java(Java build 1.7.0_05-b05 64bit)和Scala-IDE插件(Scala IDE for Eclipse 2.1.0.nightly-2_09-201207100348-f1d9c23 org.scala-ide.sdt.feature. feature.group scala-ide.org).

以下是Eclipse eclipse.ini的自定义设置:

-vmargs
-Dosgi.requiredJavaVersion=1.7
-Dhelp.lucene.tokenizer=standard
-Xss8m
-Xms256m
-Xmx1536m
-XX:PermSize=64m
-server
-Xverify:none
-XX:+UnlockExperimentalVMOptions
-XX:+UseG1GC
-XX:MaxGCPauseMillis=50
-XX:+DoEscapeAnalysis
-XX:+UseCompressedOops
Run Code Online (Sandbox Code Playgroud)

每次我尝试使用代码完成Eclipse抛出2个错误窗口:

The 'Code Recommenders Calls Proposals' proposal computer from
the 'org.eclipse.recommenders.completion.rcp.calls' plug-in did
not complete normally.
The extension has thrown a runtime exception.
Run Code Online (Sandbox Code Playgroud)

The 'Code Recommenders Overrides Proposals' proposal computer from
the 'org.eclipse.recommenders.completion.rcp.overrides' plug-in did
not complete normally.
The extension has thrown a runtime exception.
Run Code Online (Sandbox Code Playgroud)

我在下面的scala-ide日志显示:

[Xlint:cantFindType]
2012-07-10 15:37:29,404 ERROR [main] - System.err - 
[org.eclipse.jdt.launching] error can't determine modifiers of missing type
org.eclipse.pde.internal.ui.wizards.imports.PluginImportHelper
when weaving type org.eclipse.jdt.launching.JavaRuntime
when weaving classes 
when weaving 
[Xlint:cantFindType]
Run Code Online (Sandbox Code Playgroud)

有没有什么办法解决这一问题?

谢谢.

更新1:禁用代码推荐程序后,我的Slaca-Ide日志中出现了不同的错误:

2012-07-10 16:10:24,342 ERROR [main] - System.err - [org.eclipse.jdt.debug.ui] 
error can't determine modifiers of missing type
org.eclipse.pde.internal.ui.wizards.imports.PluginImportHelper
when weaving type org.eclipse.jdt.internal.debug.ui.actions.ToggleBreakpointAdapter
when weaving classes
when weaving 
[Xlint:cantFindType]
Run Code Online (Sandbox Code Playgroud)

但scala代码完成现在可以正常工作了

小智 2

您介意在代码推荐器上打开一个包含堆栈跟踪的错误报告来解决这个问题吗?

  • 几天前用Scala IDE for Eclipse 2.1.0安装了最新的Juno(Juno Service Release 1),仍然有同样的问题。尽管在这些错误显示之后,自动内容建议对于我的项目中包含的 scala 类来说效果很好,所以看起来在每种类型的点上获取这两条消息只是一件麻烦事。确定解决了吗? (2认同)