Search code examples
scalaintellij-ideaplayframework-2.0intellij-13

Error: scala: No 'scala-library*.jar' in Scala compiler library


Environment: Play 2.3.0/Scala 2.11.1/IntelliJ 13.1

I used Typesafe Activator 1.2.1 to create a new project with Scala 2.11.1. After the project was created, I ran gen-idea. The generated IDEA project fails to compile with the error:

Error: scala: No 'scala-library*.jar' in Scala compiler library in test

Am I doing something wrong? Workaround?

enter image description here


Solution

  • Since IDEA 13 you should use SBT support which is bundled with Scala plugin.

    With it there is no need to add third-party SBT plugins and run special commands; just import the project using "File -> Import project..." menu item, and it will automatically load SBT project structure and its dependencies.