I have installed scala through coursier. Running scala --version
in the terminal gives the following:
C:\Users\Me>scala --version
Scala code runner version: 1.4.3
Scala version (default): 3.5.1
When I run scala
to start the REPL I get the right welcome. But this REPL seems to be missing commands. :help
only returns the following:
Welcome to Scala 3.5.1 (17, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
scala> :help
The REPL has several commands available:
:help print this summary
:load <path> interpret lines in a file
:quit exit the interpreter
:type <expression> evaluate the type of the given expression
:doc <expression> print the documentation for the given expression
:imports show import history
:reset [options] reset the repl to its initial state, forgetting all session entries
:settings <options> update compiler options, if possible
scala>
And when I run a command not part of this list (such as :kind
, the tool I originally wanted to try, mentioned in this answer) it just returns:
scala> :kind x
Unknown command: ":kind", run ":help" for a list of commands
Was there an update to the scala REPL since the answer was posted that removed these commands?