IntelliJ cannot resolve character in build.sbt

IntelliJ 15 reports an unresolved symbol for my project definition in the build.sbt file

lazy val root = (project in file(".")).enablePlugins(PlayScala) 

An error is reported with project and in .

 Cannot resolve symbol project. Cannot resolve symbol in. 

Everything else is perfectly resolved, and the project is otherwise set up, sbt builds perfectly, the activator works fine.

+6
source share
3 answers

To fix this problem, I imported: import sbt.project on top of my build.sbt

I work with intellij 16 EAP

+3
source

I looked at jetbrains error tracking and found this to be a known bug.

"Cannot resolve symbol project" in build.sbt file

https://youtrack.jetbrains.com/issue/SCL-9512

+4
source

This happened to me when the link to the "external library" was a different version than that specified in the build.sbt file. In particular:

External libraries -> SBT: org.scala-lang:scala-library:2.12.1

build.sbt β†’ scalaVersion := "2.12.2"

+2
source

All Articles