2010 年初有哪些优秀的 Scala IDE?

发布于 2024-08-19 08:27:32 字数 198 浏览 2 评论 0原文

我知道这是一个精确的重复,但是一年了过去了,Scala 似乎是一个快速发展的事物,所以我认为再次问一下是可以接受的:

目前 Scala 开发最好的 IDE 是什么?

I know this is an exact duplicate, but a year has gone by and Scala seems to be a fast moving thing, so I figure it might be acceptable to ask again:

What is the best IDE for Scala development right now?

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

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

发布评论

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

评论(5

那些过往 2024-08-26 08:27:32

我知道 Eclipse 插件正在开发中,正在针对 Scala 2.8 进行完全重写,但我看到一位同事最近使用了 nightly-build,效果非常差。

我使用 IntelliJ IDEA社区版 9 是免费的)并且它的 scala 插件非常好。出色的语法突出显示、代码导航等。它不如 Java 支持,但我不一定会期望如此。这已经足够好了,我觉得我比使用 Java 更有效率!

它还具有规格集成和控制台集成。

I know the Eclipse plugin is a work in progress and undergoing a complete re-write for Scala 2.8 but I saw a colleague use a nightly-build recently and it was extremely poor.

I use IntelliJ IDEA (the Community Edition 9 is free) and the scala plugin for it is really good. Excellent syntax highlighting, code navigation etc. It's not as good as the Java support but then I wouldn't necessarily expect that. It's good enough that I feel I'm more productive than I would have been in Java!

It has Specs integration and console integration as well.

雨巷深深 2024-08-26 08:27:32

我尝试了 Eclipse、NetBeans 和 IntelliJ IDEA,

  • Eclipse 在我看来是最差的。它很慢,有时会扰乱语法突出显示,几乎总是会扰乱自动完成,并且整个 IDE 会时不时地变得无响应。除了自我折磨之外,我不会推荐它用于任何用途。
  • NetBeans 比 Eclipse 插件工作得更好。更好的突出显示,更好的自动完成,但它一直在整个源代码中报告相当复杂的语法错误。但是当我点击运行时,代码编译得很好。无法理解为什么。另一个问题是,当您在类的主体内编写内容时,自动完成功能无法建议类的私有成员。贫穷的!
  • IntelliJ IDEA 工作得很好。如果您严重反对 Scala 开发,我建议您这样做。

我希望 Eclipse 插件能够及时变得更加成熟,但考虑到它有足够的时间来变得成熟,我不太喜欢这个想法。 Scala 具有巨大的潜力,是一种经过深思熟虑、对程序员友好的语言,并且在 JVM 上运行(这意味着出色的性能和高可用性),但对于这种语言来说,糟糕的 IDE 支持是最糟糕的事情。在简单的文本编辑器上编写 PHP 是可以接受的,但 Scala 的语法如此复杂,并且需要使用臃肿的 Java 库,因此需要帮助。也许当前具有 functinal 和 Java 背景的 Scala 社区无法理解这一点,但你不能指望新人能够立即轻松地采用这种语言。

无论如何,选择 IntelliJ IDEA...

I tried both Eclipse, NetBeans and IntelliJ IDEA,

  • Eclipse is the worst in my opinion. It is slow, sometimes messes up the syntax highlighting, almost always messes up the autocompletion and the whole IDE gets unresponsive from time to time. I would not recommend it for any kind of use except for self torturing.
  • NetBeans works better than the Eclipse plugin. Better highlighting, much better autocompletion but it has been reporting errors on a fairly complex syntax all over the source. But when i hit run, the code compiles just well. Could not understand why. Another issue is that autocomplete can not suggest private members of classes when you are writing inside the body of that class. Poor!
  • IntelliJ IDEA works just fine. I recommend that if you are seriously leaning against Scala development.

I hope that the Eclipse plugin will be more mature in time but given that it had plenty of time to become mature, I'm not a big fan of the idea. Scala has a great potential, being a well thought, programmer friendly language and running on JVM (which means great performance and high availability) but the poor IDE support is the worst thing for such language. Writing PHP on a simple text editor is acceptable but Scala, with such complex syntax and requirement to use the bloated Java libraries, there is a need of assistance. Maybe the current Scala community with functinal and Java background can not understand this but you can not expect newcomers to easily adopt to such a language instantly.

Anyway, go for IntelliJ IDEA...

站稳脚跟 2024-08-26 08:27:32

您的主要选择是成熟的 IDE,如 IntelliJ IDEA、NetBeans 或 Eclipse,或者具有一定 Scala 意识的文本编辑器,如 TextMate 或 Emacs。

就我个人而言,我最喜欢 IntelliJ。我多年来一直使用它进行 Java 开发,特别是因为它的重构和代码导航功能。 Scala 插件一开始相当粗糙,但正在不断改进。它是开源的,我一直在贡献错误报告和一些错误修复。

IDE 插件一直在努力为 Scala 2.8 做好准备。在过去的 6 个月里,它一直是一个不断变化的目标,特别是考虑到随着新功能的添加,二进制兼容性被破坏。因此,您可能会更新到新版本的编译器,然后等待支持库(例如specs、scalatest)更新并重新编译。

现在 Scala 2.8 Beta 即将推出,这些问题已经不再那么频繁了。

IntelliJ 实现了自己的解析器和类型推断,就像 Java 一样。这使得它能够更好地容忍错误,并在您编辑时立即理解您的代码。类型推断尚未完成。 Eclipse 将大部分工作委托给 scalac,这意味着它们应该始终达成一致,但只有在保存文件并重新运行编译器时才会重新生成信息。我不知道 NetBeans 在这方面是如何工作的。

Your main options are a fully fledged IDE like IntelliJ IDEA, NetBeans or Eclipse, or a text editor with some Scala awareness like TextMate or Emacs.

Personally, I like IntelliJ the best. I've been using it for Java development for many years, especially due to its refactoring and code navigation power. The Scala plugin was quite rough to start with, but is improving constantly. It's open source, I've been contributing bug reports and a few bug fixes.

The IDE plugins have all been working hard to be ready for Scala 2.8. It's been a moving target during the last 6 months, especially given that binary compatibility was broken as new features were added. So you might update to a new build of the compiler and then wait for supporting libraries (e.g. specs, scalatest) to be updated and recompiled.

Now that the Scala 2.8 Beta is imminent these problems are less frequent.

IntelliJ implements its own parser and type inference, as it does for Java. This lets it be more tolerant of errors and to immediately understand your code as you are editing. The type inference is not complete yet. Eclipse delegates most of this work to scalac, which means it they should always agree, but the information is only regenerated when you save files and the compiler is re-run. I don't know how NetBeans works in this regard.

不语却知心 2024-08-26 08:27:32

现在,IntelliJ 的 IDEA。现在与一年前相比,一个很大的区别是 IDEA 提供了免费的开源版本。

就我个人而言,我使用 IDEA CE 9.0.1,但将编译和测试留给 SBT,我继续在另一个窗口上使用 cc~test 运行它。

Right now, IntelliJ's IDEA. And one big difference from now to a year ago is that a free, open source version of IDEA is available.

Personally, I use IDEA CE 9.0.1, but leave compilation&testing to SBT, which I keep running on another window, with cc or ~test.

久隐师 2024-08-26 08:27:32

在 2.8 的环境中,我使用了带有 nightly 插件的 Eclipse 3.5.x 和 IDEA Community Edition 9.0。除了编译时间之外,IDEA 显然对我来说更好。但我并行使用 sbt 并且它可以解决这个问题。

我使用 Eclipse 插件的主要问题是:

  • 无法更改 Eclipse 中的选项卡设置(尽管这似乎对其他人也适用)
  • 代码可以编译,但仍然突出显示一些错误,我需要关闭并重新打开文件
  • 自动完成仅返回有很多选择

我在 IDEA 9.0 build #IC-93.13 和最近的插件 0.3.385 中没有遇到这些问题。此外,IDEA 还向我显示了未使用的导入语句。

所有插件似乎都在快速发展并且正在积极开发,我怀疑今天的情况可能不会在一个月内发生。我希望从现在开始的几个月内,我们将能够使用我们最喜欢的 IDE 并获得良好的 Scala 支持。

(请注意,这是我最近对 ​​原始问题

In the context of 2.8, I have used Eclipse 3.5.x with the nightly plug-in and IDEA Community Edition 9.0. IDEA has been clearly better for me, except for compilation times. But I use sbt in parallel and it takes care of that.

My main issues with the Eclipse plug-in are:

  • Inability to change my tab settings in Eclipse (though that seems to work for others)
  • Code compiles but some errors are still highlighted and I need to close and reopen the file
  • Auto-completion just returns a lot of choices

I did not have those issues in IDEA 9.0 build #IC-93.13 with the recent plug-in 0.3.385. Additionally IDEA shows me unused import statements.

All plug-ins seem to be evolving quite quickly and are actively developed and I suspect that what is true today may not be in one month. I hope that in a few months from now, we will just be able to use our favorite IDE and have good Scala support.

(note this is a repost of my recent answer to the original question)

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