Why “could not find implicit” error in Scala + Intellij + ScalaTest + Scalactic but not from sbt
问题 I have this code that is working 100% from sbt , executing sbt test but throw a compilation error in Intellij Idea. import org.scalatest.{BeforeAndAfter, FunSuite, GivenWhenThen} class SimpleTest extends FunSuite with GivenWhenThen with BeforeAndAfter { test("Simple Test") { Given("Why this error?") assert("ok" === "ok") } } The error is: Error:(5, 10) could not find implicit value for parameter pos: org.scalactic.source.Position Given("Why this error?") Error:(5, 10) not enough arguments for