Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anzhi0708 opened this issue May 19, 2024 · 1 comment
Open

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

anzhi0708 opened this issue May 19, 2024 · 1 comment

Comments

@anzhi0708
Copy link

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants