libraryDependencies += “org.scalatest” %% “scalatest” % “3.2.0-SNAP10” % Test
and when I look at the external libraries I see the library and when I open the library under org.scalatest I see all the symbols I expect to see but when I try to import org.scalatest.WordSpecLike (or anything else from this library ) Intellij tells me that it “cannot resolve scalatest”.
I’ve imported other libraries (e.g. all the various com.typesafe.akka libraries) and not had any problem.
Thanks Seth. I replaced 3.2.0-SNAP10 wih 3.0.6 and that didn’t help. It’s so frustrating because I can see org.scalatest in the library listing and I can’t imagin what kind of bug would object to a package under org but not packages under com.typesafe. I feel like I must be making some stupid mistake but I can’t see what it would be.
I would be really grateful if some IntelliJ user could try it and tell me if they run into the problem. (I filed a bug with JetBrains but haven’t heard anything.)
OK, this has nothing to do with IntelliJ. I get the same error when I run directly in sbt.
This is taken directly from the org.scalatest user guide [ScalaTest]
Here’s my build.sbt
name = “st”
version = “0.1”
scalaVersion = “2.12.8”
libraryDependencies+=“org.scalatest” %% “scalatest” % “3.0.5” % “test”