更新intelliJ IDEA

发布于 2024-09-18 05:16:41 字数 82 浏览 5 评论 0 原文

我正在使用 IntelliJ IDEA 9.0 社区版。我使用的Scala插件使用Scala 2.7.6。如何更新 Scala 2.8 的插件?谢谢。

I'm using IntelliJ IDEA 9.0 community edition. The Scala plugin I use uses Scala 2.7.6. How do I update the plugin for Scala 2.8? Thanks.

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

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

发布评论

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

评论(1

墨小沫ゞ 2024-09-25 05:16:41

如果您使用最新版本的 IDEA (9.0.3) 和最新版本的 scala 插件,那么这应该很简单:

  1. 您需要 下载 2.8 版本的 scala 发行版$SCALA28_HOME
  2. 要使用 scala,请创建一个 Java 模块并向其中添加 scala 方面
  3. 在添加过程中,系统会要求您进行 scala 安装 - 将 IDEA 指向您的 $SCALA28_HOME ,它将自动创建 scala-library-2.8.0 scala-compiler-2.8.0 为您提供“全局”库(它将作为依赖项添加到您的模块中)。

需要认识到的一件事是,只有将编译器作为全局库添加到模块中时,嵌入式 scala 控制台(即 REPL)似乎才能工作。

If you use the latest edition of IDEA (9.0.3) and the latest version of the scala plugin for that, this should be easy:

  1. You need to download the scala distribution for 2.8 to $SCALA28_HOME
  2. To use scala, create a Java module and add the scala facet to it
  3. During the addition process, you will be asked for a scala installation - point IDEA at your $SCALA28_HOME and it will automatically create scala-library-2.8.0 and scala-compiler-2.8.0 "global" libraries for you (it adds the library to your module as a dependency).

One thing to realize is that the embedded scala console (i.e. REPL) only seems to work if you add the compiler as a global library to the module as well.

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