IntelliJ IDEA 15 is reporting an unresolved symbol for my project definition in my build.sbt
file
lazy val root = (project in file(".")).enablePlugins(PlayScala)
It's reporting an error with project
and in
.
Cannot resolve symbol project.
Cannot resolve symbol in.
Everything else resolves perfectly and the project is otherwise all set up, sbt builds fine, activator runs fine.
Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Build Tools | sbt. In the sbt projects section, select a project for which you want to configure build actions. In the sbt shell section, select the builds option. Click OK to save the changes.
In my case, after upgrading Intellij forgot that the project was a Scala project.
Delete .idea/
and import the project to fix this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With