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
Since we're planning on having a few more users soon, it would be nice to print more information when crashing so that the crash is easier to reproduce.
Description
When the compiler crashes/panics, produce a slightly larger report with the necessary information one needs to report the crash, such as:
where to report the crash
Effekt compiler version
Effekt config (esp. things like which backend was used)
JVM info
backend info (paths, versions of installed/used backends?)
OS info
the full stack trace
This could also be serialised into some file in ./out/ instead of / in addition to printing it.
Context
The relevant code for handling a crash right now is here:
Hey @jiribenes :)
I started to tackle this one and got pretty far, but now I have a somewhat embarrassing question. I can't get the compiler to crash so I can test my implementation... I thought this might even be the easiest part, but all the things I tried are caught by other safeties!! Could you provide me with a fool-proof way to crash or panic the compiler?:)
It's great news that you find it hard to make the compiler panic ;), that means we're making it pretty resilient. :)
In order to test this feature, try putting INTERNAL_ERROR("some text here") somewhere into the compiler source where it's going to get hit (this specific helper is defined in util/Messages.scala)
Motivation
Since we're planning on having a few more users soon, it would be nice to print more information when crashing so that the crash is easier to reproduce.
Description
When the compiler crashes/panics, produce a slightly larger report with the necessary information one needs to report the crash, such as:
This could also be serialised into some file in
./out/
instead of / in addition to printing it.Context
The relevant code for handling a crash right now is here:
effekt/effekt/jvm/src/main/scala/effekt/Driver.scala
Lines 89 to 102 in 458fc9c
Most of the info mentioned above is accessible via
System.getProperty
(or viaSystem.getenv
) or through theEffektConfig
. :)The text was updated successfully, but these errors were encountered: