-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Show correct version when using util.Properties.versionNumberString #22144
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
Comments
Why add it to 2.13.16, can't we fully solve it in Scala 3 ? |
Can we patch the scala library to fix that? |
No, we cannot override class files that exist in the scala-library.jar. |
The version of the scala-library is 2.13.15. Perhaps you want: scala> println(dotty.tools.dotc.config.Properties.versionNumberString)
3.6.4-RC1-bin-20241204-a67dbb0-NIGHTLY |
I think that requires you to have the compiler on your classpath, no? |
Yeah, it's in scala3-compiler. |
So normal users will try to use |
This should be fixed when we work on #22043 anyways |
I take it back. I think it's reasonable to configure scala-library's scala.util.Properties to try to look for a properties file which we'll ship in scala3-library, as an override. |
Compiler version
3.5.2
Minimized code
println(util.Properties.versionNumberString)
Output
2.13.15
or 14 don't remember, but that's not important
Expectation
It should show 3.5.2. For that to happen two steps were suggested:
They should be something like:
maven version might not be needed.
First step should be adding it here, but if we hurry we can add it to Scala 2.13.16
The text was updated successfully, but these errors were encountered: