且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在IntelliJ IDEA中运行Scala脚本?

更新时间:2022-05-20 02:42:55

这里的答案是项目的组合:

The answer here is a combination of items:


  • (a)创建一个全新的Scala项目(由@lhuang建议)和

  • (b)在运行脚本时,您需要进入运行配置并删除Make步骤(如'相关'SOF问题中所述)。

这显示了Intellij及其scala插件的粗糙边缘。特别是当我想要将scala与java集成时,如果甚至可能在此时使用Intellij显然很困难(需要频繁创建新的Scala项目对于大多数试图合并scala的java项目来说都是非首发)。

This shows rough edges with Intellij and its scala plugin. Especially when I want to integrate scala with java it is apparently difficult if even possible using Intellij at this time (need to create new Scala project on a frequent basis is a non-starter for mostly java projects attempting to incorporate scala).

但是对于scala-first项目来说,似乎这可能是可行的。

But for scala-first projects it seems this may be workable.