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

时间:2012-07-10 20:03:21

标签: 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

每次我尝试使用代码完成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.

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.

我的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]

有什么方法可以解决这个问题吗?

谢谢。

更新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]

但scala代码完成现在可以正常运行

1 个答案:

答案 0 :(得分:2)

您是否介意打开代码推荐器的错误报告,包括堆栈跟踪以解决此问题?