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

Crash on EA version of JDK #2397

Closed
SlowBrainDude opened this issue Sep 14, 2023 · 2 comments
Closed

Crash on EA version of JDK #2397

SlowBrainDude opened this issue Sep 14, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@SlowBrainDude
Copy link

Version(s)
Scala CLI version: 1.0.4

Describe the bug
Calling Scala-CLI (scala-cli -j system someCode.scala ) crashes with the following error:

Failed to parse output of 'bloop about':
bloop v1.5.9-sc-1

Using Scala v2.12.18 and Zinc v1.9.2
Running on Java JDK v17.0.9-ea (/usr/lib/jvm/java-17-openjdk-amd64)
  -> Supports debugging user code, Java Debug Interface (JDI) is available.
Maintained by the Scala Center and the community.

Starting compilation server
Error: java.lang.RuntimeException: Fatal error, could not spawn Bloop: failed to parse output: 'bloop v1.5.9-sc-1

Using Scala v2.12.18 and Zinc v1.9.2
Running on Java JDK v17.0.9-ea (/usr/lib/jvm/java-17-openjdk-amd64)
  -> Supports debugging user code, Java Debug Interface (JDI) is available.
Maintained by the Scala Center and the community.

To Reproduce
Install the current OpenJDK release on Debian Testing, which is currently an early-access version (for whatever reasons, IDK), or some other Java Runtime EA release.

Run Scala-CLI with that JDK (e.g. -j system flag).

Expected behaviour
Should not crash.

I've encountered this bug first in bleep. But just found out it affects also Scala-CLI.

There is already a patch prepared at scala-cli/bloop-core#153. Could someone please have a look?

Thanks for making Scala-CLI! Looking forward to having it working again. 😄

@SlowBrainDude SlowBrainDude added the bug Something isn't working label Sep 14, 2023
@tgodzik
Copy link
Member

tgodzik commented Sep 29, 2023

@lwronski I think the update was merged and we can close?

@lwronski
Copy link
Contributor

lwronski I think the update was merged and we can close?

Fixed in scala-cli/bloop-core#153. @SlowBrainDude Thanks for fix!
Changes from bloop included in #2401.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants