almond-sh / almond

A Scala kernel for Jupyter
https://almond.sh
BSD 3-Clause "New" or "Revised" License
1.59k stars 239 forks source link

Specified to use Scala 3 but Scala 2 still being used #1361

Closed anzhi0708 closed 3 months ago

anzhi0708 commented 4 months ago

I installed the kernel using cs launch --fork almond:0.14.0-RC14 --scala 3.3.0 -- --install --force, but when I opened the notebook, scala.util.Properties.scalaPropOrElse("version.number", "Unknown") shows the version as 2.13.12.

coreyoconnor commented 4 months ago

This is expected and is inherit to how Scala 3 uses the Scala 2 library. version.number returns the scala library version. Which, even for scala 3, is 2.13.

Use dotty.tools.dotc.config.Properties.simpleVersionString and you'll see the scala 3 compiler version.