Scala Compiler not found in Intellij IDEA 11 with Play 2.0 project

后端 未结 3 1761
春和景丽
春和景丽 2021-02-11 18:55

I created a project using the typical play new, and then I used play idea to generate the .iml file. When I imported the .iml file into Intellij IDEA,

3条回答
  •  余生分开走
    2021-02-11 19:31

    This is a slight weirdness with the Scala settings in IntelliJ. Currently the only way to register a scala distribution is to create a new project.

    Steps:

    1. File > New Project > Create project from scratch

    2. Leave all settings as default. Project name can be anything.

    3. On the "Please select the desired technologies" page, choose Scala. Some GUI elements will appear that allow you to tell IntelliJ how to find your scala compiler and library. Make sure to set the "Level" options to "global".

    4. Click Finish. Close the dummy project that you created, and go back to your real project. The Scala compiler that you registered should now be in the list on your project settings page.

提交回复
热议问题