I have the following class:
import scala.util.{Success, Failure, Try}
class MyClass {
def openFile(fileName: String): Try[String] = {
Failure( new
Try adding the following line to your build.sbt
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
your build.sbt should be like this:
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test"
With this, the error for me is solved.