Scala Eclipse 错误
尝试将 Scala 与 NetBeans 结合使用失败后(代码完成仍然不起作用)。我下定决心,决定尝试一下Eclipse。由于与 NetBeans 的争执,路径变量已被编辑,我预计不会出现任何问题。好吧,我错了。
- 我下载了 Eclipse Classic。
- 我阅读了说明,了解如何设置 Scala IDE。
- 在观看 YouTube 视频后,我安装了此链接 http://www.scala-ide.org/< 提供的所有插件/a>
- 我创建了一个新的 Scala 项目并向其中添加了一个对象。
首先出现一个窗口显示此信息
发生错误。查看错误日志 了解更多详情。 java.lang.ExceptionInInitializerError
我查看了错误日志,但我不知道该怎么办。有四种不同的错误。
- 从插件“org.eclipse.jface”调用代码时出现问题。
- Widget 处理得太早了!
- 未处理的事件循环异常
- 演示编译器失败
令人印象深刻不是吗?我该怎么办?
after the unsuccessful attempt to use Scala with NetBeans (Code Completion still doesn't work). I made up my mind and decided to try Eclipse. Due to the quarrels with NetBeans the path variable was already edited and I didn't expect any problems. Well, I was wrong.
- I downloaded Eclipse Classic.
- I read the instructions, how to setup the Scala IDE.
- Following a youtube video, I installed all plugins available from this link http://www.scala-ide.org/
- I created a new Scala project and added an object to it.
First a window appeared showing this information
An error has occurred. See error log
for more details.
java.lang.ExceptionInInitializerError
I looked in the error log, but I don't know what to do. There are four different errors.
- Problems occurred when invoking code from plug-in: "org.eclipse.jface".
- Widget disposed too early!
- Unhandled event loop exception
- Failure in presentation compiler
Pretty impressing isn't it ? What shall I do ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在回复您之前的评论时,您说,
Eclipse 3.6.1 是 Eclipse Helios。这意味着您需要从 此处 的更新站点安装 Helios 特定版本的 Scala 工具。 .. 这在 scala-ide.org 上有非常清楚的标记:请参阅文本“实验性支持Eclipse 3.6 (Helios) 已可用”和相应的链接。或者,您可以恢复到 Eclipse 3.5.x (Galileo)。
另请注意,获得适用于 Eclipse 的 Scala IDE 支持的最佳位置是 scala- ide-user 邮件列表 ...我会密切关注 stackoverflow 上的此类问题,但一般来说,如果您将问题发布到正确的位置,您会得到更快、更可靠的答复。
In reply to an earlier comment you say,
Eclipse 3.6.1 is Eclipse Helios. That means that you need to install the Helios-specific version of the Scala tooling from it's update site here ... this is pretty clearly flagged up on scala-ide.org: see the text "Experimental support for Eclipse 3.6 (Helios) is available" and the corresponding link. Alternatively you can revert to Eclipse 3.5.x (Galileo).
Also, please note that the best place to get support for the Scala IDE for Eclipse is the scala-ide-user mailing list ... I keep an eye on stackoverflow for questions like this, but in general you'll get a much faster and more reliable response if you post your questions to the right place.
尝试使用 eclipse -clean 调用 Eclipse,然后转到 Window、Preferences、JDT Weaving 并单击 Enable,然后重新启动 Eclipse 并尝试再次创建新的 Scala 项目。
让我们知道情况如何。
Try to invoke Eclipse with
eclipse -clean
then go to Window, Preferences, JDT Weaving and click Enable then restart your Eclipse and try creating a new Scala project again.Let us know how was it.
我调用了 Eclipse
但 JDT Weaving 已启用。我从未改变过它的值,所以这有点令人困惑。尽管如此,我创建了一个新的 Scala 项目并发生了同样的错误。另外,在错误日志中我发现了以下消息
出了什么问题?命令行没有吐出任何错误消息。
I invoked Eclipse with
but JDT Weaving was already enabled. I never changed its value so this is slightly confusing. Nevertheless I created a new Scala project and the same error ocurred. Additionally in the error log I found the message
What went wrong ? The command line didn't spit out any error message.
冒着被批评的风险……
您尝试过 IntelliJ 吗?如果您使用社区版,它是免费的,并且目前似乎对 3 个主要(Java)IDE 中的 Scala 有最强/最稳定的支持。
At risk of being flamed....
Have you tried IntelliJ, it's free if you use the community edition and currently seems to have the strongest/most stable support for Scala of the 3 major (Java) IDEs.