How to use Scala in IntelliJ IDEA (or: why is it so difficult to get a working IDE for Scala)?

前端 未结 9 1650
逝去的感伤
逝去的感伤 2021-01-30 10:26

I recently gave up trying to use Scala in Eclipse (basic stuff like completion doesn\'t work). So now I\'m trying IntelliJ. I\'m not getting very far.

I\'ve been able to

9条回答
  •  -上瘾入骨i
    2021-01-30 11:06

    Installing the plug-in is prerequisite one.

    The next thing you should do is define a library (global or project-specific; I use global) that holds the Scala library and compiler JAR files (at a minimum, that's scala-compiler.jar and scala-library.jar). Adding source JARs and a documentation JAR or URLs is a good idea, too. Then make this library a dependency of any modules in your project that include Scala code.

    Lastly, find the Scala facets in those modules and de-select both check-boxes there.

提交回复
热议问题