Intellij Idea setup for Scala, clarification needed

前端 未结 3 1242
無奈伤痛
無奈伤痛 2020-12-14 03:28

Using IntelliJIdea 12, i downloaded the Scala plugin and created a HelloWorld application.

The following import seems odd. Why does IDEA not recognize this to be a S

3条回答
  •  别那么骄傲
    2020-12-14 03:59

    I got around this by downloading the Scala library from scala-lang.org, unzipping it and then pointing the project to it. It worked fine after that. But of course, I'm an eclipse guy so perhaps someone else might be able to give you a better automated (?) solution. Here's what my project looks like in Module Settings -> Libraries:

    enter image description here

提交回复
热议问题