Scala-IDE和Eclipse Juno的代码自动补全问题

11

我正在使用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 Juno。

以下是我自定义的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都会弹出两个错误窗口:
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代码补全已经可以正常工作了。

请在scala-ide-user上发布此内容。 - kiritsuku
1个回答

2

你能否在Code Recommenders上开一个bug报告并附上堆栈跟踪以解决这个问题?


Marcel:我在这里找到了这个错误报告:code assist not working in nightly build + eclipse 4.2 juno - Timka
谢谢。那里的堆栈跟踪很有帮助。Recommenders方面的修复正在进行中。https://bugs.eclipse.org/bugs/show_bug.cgi?id=383395#c4 - Marcel
只是想让你知道:我遇到了相同的问题,Eclipse Juno和nightly Scala IDE for Juno builds。 - ROLO
在Juno + ScalaIDE 2.0.2中遇到了相同的错误。一旦我输入“args.”,就会弹出此窗口。 - G.A.
这是Scala插件的问题吗?还是Eclipse JDT的一个bug?我遇到了同样的问题。 - Sergio
2
几天前安装了最新的Juno(Juno Service Release 1),并使用Eclipse 2.1.0的Scala IDE,但仍然存在同样的问题。尽管在这些错误显示后,自动内容建议对我的项目中包含的Scala类运作良好,所以看起来只是在每个点类型时得到这两条消息有点烦人。你确定它已经解决了吗? - matanster

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接