EDIT : It works if the file is in src/test/scala/tests/
but not in src/main/scala/mypackage/
. Why?
I have tried solutions from topics with people having nearly the same issue but none of them work.
For details, I have this in build.sbt :
libraryDependencies ++= Seq(
...
"org.scalatest" % "scalatest_2.10" % "2.2.1" % "test",
...
In Intellij, I have a class with:
import org.scalatest.{BeforeAndAfterAll, Suite}
with {BeforeAndAfterAll, Suite}
in red so i guess scalatest is found
sbt package does not work either:
object scalatest is not a member of package org [error] import org.scalatest. {BeforeAndAfterAll, Suite}
I have already tried this :
- sbt clean update
- restart + invalidate cache of intellij
- remove .idea/ and reimport
- libraryDependencies += "org.scalatest" % "scalatest_2.10" % "2.0" % "test" instead ogf the actual
- magical ritual on my keyboard
Nothing works
Any ideas?