It's a small project of Scala with SBT 1.8.0 as the builder. It builds and tests well on my PC, but not work on my laptop after it pulls the same project from my git repositoy.
- The repository only has
build.sbt and folder
src, nothing else.
build.sbt is like this below, and the tests are written with ScalaTest.
ThisBuild / scalaVersion := "2.13.10"
lazy val root = (project in file("."))
name := "project",
idePackagePrefix := Some("org.meeeee")
val AkkaVersion = "2.7.0"
libraryDependencies ++= Seq(
// ... the others ...
"org.scalatest" %% "scalatest" % "3.2.14" % "test",
"org.scalatest" %% "scalatest-featurespec" % "3.2.14" % "test"
Problem I: "error: not found: value idePackagePrefix".
When compiling the project, it shows "error: not found: value idePackagePrefix".
If I comment the line
ideaPackagePrefix := Some("org.meeeee"), then the project compiles well.
Problem II: "Did not find suite classes in package xxx"
When I right-click the test package domain in folder
test and run all scalatest, the IDEA shows "Error running "domain" ScalaTest: Did not find suite classes in package domain.".
But I tried
sbt test, it runs all tests in the domain in sbt console.
Even I tried run test in the package independently, the IDEA works well.
How to fix it? Thanks.