-
Notifications
You must be signed in to change notification settings - Fork 932
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
SBT fails to start on the latest JDK-21 builds since build 21 (2023/5/4) #7235
Comments
@plokhotnyuk Thanks for the report! I wonder if Scala 2.12.17 in general works on JDK 21-ea. |
I would guess this fails because Scala 2.12.17 comes with an asm version that does not yet support Java 21. |
Actually I think it would be good idea to wait for Scala 2.12.18/2.13.11 for the 1.9.0 final release and use that within sbt then... |
I'm seeing the same
edit: since the underlying issue is a scala problem, not an sbt problem, I reported it here: scala/bug#12783 |
As far as I know there's no set release date for Scala 2.12.18 since it's waiting on Scala 3.3.0 final, which just released its RC-6 and release thread doesn't mention it, so even with the best case scenario we are like 3 weeks out? |
I didn't expect a RC6, but yes, no need to wait. I thought it should be released already... but who knows. |
We've published Scala 2.12.18-M2 and Scala 2.13.11-M2 to Maven Central with a fix for scala/bug#12783. You can start sbt on JDK 21 with I'll submit the same fix to Scala 3, though it won't make 3.3.0. (2.12.18 and 2.13.11 will come along not long after Scala 3.3.0 is released.) |
@SethTisue Seems like the M2 git-tags didn't make it upstream? https://github.com/scala/scala/tags |
@mkurz oh good call, I didn't think to tag either release. they are tagged now |
Scala 2.12.18 is on Maven Central (to be announced next week, as per https://contributors.scala-lang.org/t/scala-2-12-18-release-planning/6089/) |
Here's my PR for this - #7271 |
also update sbt to run with newer JVMs (sbt/sbt#7235)
steps
/usr/lib/jvm/jdk-21
sbt -java-home /usr/lib/jvm/jdk-21
problem
The sbt fails to start with the following error:
expectation
Normal start
notes
1.8.2
and1.9.0-RC1
The text was updated successfully, but these errors were encountered: