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
java.lang.ExceptionInInitializerError
at Main$.<clinit>(main.scala:12)
at Main.main(main.scala)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at sbt.Run.invokeMain(Run.scala:143)
at sbt.Run.execute$1(Run.scala:93)
at sbt.Run.$anonfun$runWithLoader$5(Run.scala:120)
at sbt.Run$.executeSuccess(Run.scala:186)
at sbt.Run.runWithLoader(Run.scala:120)
at sbt.Run.run(Run.scala:127)
at com.olegych.scastie.sbtscastie.SbtScastiePlugin$$anon$1.$anonfun$run$1(SbtScastiePlugin.scala:38)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:21)
at sbt.ScastieTrapExit$App.run(ScastieTrapExit.scala:258)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: scala.MatchError: 4 (of class java.lang.Integer)
at Playground$.f(main.scala:6)
at Playground$.<clinit>(main.scala:8)
... 17 more
Expected behavior
As a user, I see only what is in the text field, so for me there is no main class or initializer of such a class, therefore I expect to see the match error directly, with potentially it's call-stack
Screenshot ( Optional )
No response
Version
Scastie website
What browsers are you seeing the problem on?
Firefox
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
Match errors (and possibly other errors) show up as a
java.lang.ExceptionInInitializerError
on classmain
Scastie snippet link
https://scastie.scala-lang.org/MVyFPRGIRFGceTz2j49JKQ
To Reproduce
Expected behavior
As a user, I see only what is in the text field, so for me there is no main class or initializer of such a class, therefore I expect to see the match error directly, with potentially it's call-stack
Screenshot ( Optional )
No response
Version
Scastie website
What browsers are you seeing the problem on?
Firefox
Relevant log output
No response
The text was updated successfully, but these errors were encountered: