I am following the documentation, specifically this passage:
cs setupinstalls the Scala 2 compiler and runner (the
scalacommands, respectively). This is usually not an issue because most projects use a build tool that works with both Scala 2 and Scala 3. Nevertheless, you can install the Scala 3 compiler and runner as command-line tools by running the following additional commands:
$ cs install scala3-compiler $ cs install scala3
Checking if a JVM is installed Found a JVM installed under /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home. Checking if ~/Library/Application Support/Coursier/bin is in PATH Checking if the standard Scala applications are installed Installed ammonite Installed cs Installed coursier Installed scala Installed scalac Found sbt Found sbtn Installed scalafmt
and instead of the expected version 2 I got version 3 ! Why? Moreover,
coursier was already installed on my system.
sbt was found and
coursier not. Why?
scala -version Scala code runner version 3.1.1 -- Copyright 2002-2022, LAMP/EPFL
How do I install version 2? Do I need to remove version 3 or they can co-exist?
After several days fighting with basic installations, “Hello World” not working and many glitches, I just would like to ask you how to clean up everything, and install anew sbt, coursier, and scala 2?