Alex Fruzenshtein
Alex Fruzenshtein

Reputation: 3126

Intellij IDEA: Why build.sbt is highlighted in red?

After a 2 year pause I resumed work with PlayFramework. So I created a new Play Scala project via Intellij IDEA. But the result was strange:

  1. Content of build.sbt is highlighted in red
  2. The project contains build.gradle O_o

So the question is: why content of the build.sbt is underlined in red?enter image description here

Upvotes: 11

Views: 6139

Answers (2)

Jeff
Jeff

Reputation: 1

Make sure that build.sbt (actually any files named *.sbt) are in the project’s base directory. I unknowingly moved mine to the target directory once. It was very hard to see given that build.sbt is normally displayed right below the target directory. Everything goes red, but everything still works like it did when build.sbt started where it was supposed to be.

Upvotes: 0

Elena
Elena

Reputation: 181

That's a known issue which will be fixed shortly. As a work-around, please close the project and re-import it. https://youtrack.jetbrains.com/issue/SCL-13283

Upvotes: 5

Related Questions