Scala Eclipse 错误

发布于 2024-10-01 08:46:45 字数 660 浏览 2 评论 0原文

尝试将 Scala 与 NetBeans 结合使用失败后(代码完成仍然不起作用)。我下定决心,决定尝试一下Eclipse。由于与 NetBeans 的争执,路径变量已被编辑,我预计不会出现任何问题。好吧,我错了。

  1. 我下载了 Eclipse Classic。
  2. 我阅读了说明,了解如何设置 Scala IDE。
  3. 在观看 YouTube 视频后,我安装了此链接 http://www.scala-ide.org/< 提供的所有插件/a>
  4. 我创建了一个新的 Scala 项目并向其中添加了一个对象。

首先出现一个窗口显示此信息

发生错误。查看错误日志 了解更多详情。 java.lang.ExceptionInInitializerError

我查看了错误日志,但我不知道该怎么办。有四种不同的错误。

  1. 从插件“org.eclipse.jface”调用代码时出现问题。
  2. Widget 处理得太早了!
  3. 未处理的事件循环异常
  4. 演示编译器失败

令人印象深刻不是吗?我该怎么办?

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.

  1. I downloaded Eclipse Classic.
  2. I read the instructions, how to setup the Scala IDE.
  3. Following a youtube video, I installed all plugins available from this link http://www.scala-ide.org/
  4. 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.

  1. Problems occurred when invoking code from plug-in: "org.eclipse.jface".
  2. Widget disposed too early!
  3. Unhandled event loop exception
  4. Failure in presentation compiler

Pretty impressing isn't it ? What shall I do ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

过气美图社 2024-10-08 08:46:45

在回复您之前的评论时,您说,

我下载的是3.6.1版本。我没有
我认为这已经是赫利俄斯了,但我是
没有把握。此外我还下载了
来自 scala-ide.org 的插件。这是一个
稳定的构建。稳定的构建。

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,

I downloaded version 3.6.1. I've don't
think this is Helios already but I'm
not sure. Moreover I downloaded the
plugin from scala-ide.org. It was a
stable build.stable build.

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.

写下不归期 2024-10-08 08:46:45

尝试使用 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.

风铃鹿 2024-10-08 08:46:45

我调用了 Eclipse

日食-干净

但 JDT Weaving 已启用。我从未改变过它的值,所以这有点令人困惑。尽管如此,我创建了一个新的 Scala 项目并发生了同样的错误。另外,在错误日志中我发现了以下消息

-clean (osgi.clean) 选项不是
成功的。无法清洁
存储区域:
D:\Programme\eclipse\configuration\org.eclipse.osgi

出了什么问题?命令行没有吐出任何错误消息。

I invoked Eclipse with

eclipse -clean

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

The -clean (osgi.clean) option was not
successful. Unable to clean the
storage area:
D:\Programme\eclipse\configuration\org.eclipse.osgi

What went wrong ? The command line didn't spit out any error message.

骷髅 2024-10-08 08:46:45

冒着被批评的风险……

您尝试过 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文