You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Confusing and unexpected error in simplest REPL command.
To Reproduce
scala-cli
Welcome to Scala 3.3.0 (21, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
scala> val s = ""
error while loading AccessFlag,
class file /modules/java.base/java/lang/reflect/AccessFlag.class is broken, reading aborted with class java.lang.RuntimeException
bad constant pool index: 0 at pos: 5189
error while loading ElementType,
class file /modules/java.base/java/lang/annotation/ElementType.class is broken, reading aborted with class java.lang.RuntimeException
bad constant pool index: 0 at pos: 1220
2 errors found
Expected behaviour
To not see two errors, or at least get actionable error messages.
The text was updated successfully, but these errors were encountered:
I've updated scala-cli to 1.0.5 and it is fixed now:
scala-cli
Welcome to Scala 3.3.1 (21.0.1, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
scala> val s = ""
val s: String = ""
scala>
it's a bit unusual that there was a fairly long delay between Scala 3.3.1 coming out and Scala-CLI 1.0.5 coming out with 3.3.1 as the default. there is some discussion at #2394 about the prospect of avoiding such delays in the future
Version(s)
1.0.4
Describe the bug
Confusing and unexpected error in simplest REPL command.
To Reproduce
Expected behaviour
To not see two errors, or at least get actionable error messages.
The text was updated successfully, but these errors were encountered: