-
Notifications
You must be signed in to change notification settings - Fork 145
Display error with full stack trace for crashed compiler #357
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
Comments
It can be related to: scalameta/metals#3214 |
I think we should also expand this issue to all cases where the compiler prints information, e.g. when users want to print trees after certain phases. cc @KacperFKorban |
The three major use cases related to this issue are:
|
Another use case is compiler crashes. With
whereas with 3.2.0's |
I get something similar running a 3 line program as described here: #1420 (comment) |
Note (as @lwronski pointed out on #1420) that one can work around this with This came up for me today in one of the scenarios already mentioned by @KacperFKorban : I am debugging a Scala 3 compiler plugin, and the debugging output from the plugin vanishes. |
Yay! Thank you! |
This isn't fixed, but I guess it's part of #2530. |
If the compiler crashes during compilation the full stack trace from the compiler (and maybe some additional clarification) should be displayed instead of the sole error message from the compiler's exception, which can be as vague as e.g. just
assertion failed: <none>
.This is important for 2 main reasons:
(Reported for scala-cli v0.0.7)
The text was updated successfully, but these errors were encountered: