I currently had installed scala 2.11.7
but in order to fix this issue, I have to install a older version of scala(2.10.5
). When I try to install with b
If you manage your project with sbt
, the scala built tool, either directly or via IntelliJ, the version of scala for that code is defined in the build file (build.sbt
or Build.scala
):
scalaVersion := "2.10.5"
Choosing this path, there isn't even a need to install scala on your Mac at all. Each project will have its own version -- pulled from your local ivy
repository, so it doesn't have to download it each time.
And rather than typing scala
to get to the REPL, you type sbt console
to get to the REPL with the project's scala version and dependencies loaded.