Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ cannot resolve symbol in build.sbt

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.

like image 284
CodeShaman Avatar asked Dec 12 '15 22:12

CodeShaman


People also ask

How run SBT project in IntelliJ?

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.


1 Answers

In my case, after upgrading Intellij forgot that the project was a Scala project.

Delete .idea/ and import the project to fix this.

like image 81
Ruurtjan Pul Avatar answered Sep 16 '22 20:09

Ruurtjan Pul