Trouble installing Scala 3.2

I’m using Manjaro and got the following output:

 cs install scala:3.2.2 && cs install scalac:3.2.2
cs: cannot find a CSD file or an orc/sco pair with the specified name
 $- scala -version                                     
Scala code runner version 2.13.8-20220325-005602-unknown -- Copyright 2002-2021, LAMP/EPFL and Lightbend, Inc.

I have already set JDK 19 as default and runned curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup

Is it possible that you have another program named cs on the path? The error seems not to be very similar to anything I’ve seen in the past.

Also, alternatively, if you’re starting your journey with scala you can try scala-cli instead of the current default runner. https://scala-cli.virtuslab.org/

1 Like
scala-cli version                                               
Scala CLI version: 0.2.0
Scala version (default): 3.2.2
 
 scala -version                                                  
Scala code runner version 2.13.8-20220325-005602-unknown -- Copyright 2002-2021, LAMP/EPFL and Lightbend, Inc.

Thx, but what version Intellij will use?