cs does not install scala runner for scala 3
See original GitHub issueSee https://github.com/lampepfl/dotty/issues/12811
Minimized example
Follow the official document Scala 3 Book, run the simple “Hello, world” example through scala3-repl.
In the file hello.scala
, write
@main def hello = println("Hello, world!")
Then
scala3-compiler hello.scala
scala3-repl hello
The scala3-repl was installed through Coursier, as suggested by the official webpage Download Scala 3
Output
NO output.
The scala3-repl get into the interactive mode directly without any output.
Expectation
A runner for scala3 should be installed, e.g.
scala3 hello
should produce "Hello, world!"
as output, the same as in Scala 2.
Even better would be if we could control which version is currently associated with the scala
and scalac
commands and that the work with either Scala 2 or Scala 3 depending on a version switch by some cs command. This way we don’t need different names of the runners, with an incosistent naming scheme (scala
not scala2
or scala3
).
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:41 (10 by maintainers)
Top GitHub Comments
This is a showstopper for me to use cs in my teaching. And there is no .msi for Scala 3 so I’m more or less stuck (manually unpackaging a zip and going into environment variables to fiddle with path etc in Windows is not very attractive beginner programmer user experience…)
Equivalent steps work on Windows as well 😃