Display error with full stack trace for crashed compiler
See original GitHub issueIf 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:
- It’s not quite clear if the error means something is wrong with the user’s code, the compiler or scala-cli itself
- This would make reporting errors to the compiler easier and would encourage people to report bugs (we could also include some message explaining how to do that with a link to the proper repository etc.)
(Reported for scala-cli v0.0.7)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to automatically generate a stacktrace when my program ...
When my C++ program crashes I would like it to automatically generate a stacktrace. My program is being run by many different users...
Read more >How to automatically generate a stacktrace when a gcc C++ ...
This compiler uses glibc library. We can use the backtrace() function to trace the error. This function is present inside the execinfo.h ...
Read more >How Can You Debug Compiler-Generated Entries in iOS ...
Compiler -generated lines in iOS crash reports are difficult to debug. Embrace automatically highlights the most likely file name and line ...
Read more >How to Produce a Full Stack Trace for mysqld - MariaDB
When mysqld / mariadbd crashes, it will write a stack trace in the error log by default. This is because the stack_trace option...
Read more >My ESP crashes running some code. How to troubleshoot it?
Do you see always the same exception code and stack trace or it changes? Does this issue occur with unmodified ... Set Compiler...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Another use case is compiler crashes. With
scala-cli compile
I just get e.g.whereas with 3.2.0’s
scalac
I get the full stack trace — which I need, if I’m going to file a bug report, or attempt to investigate the crash myself.I get something similar running a 3 line program as described here: https://github.com/VirtusLab/scala-cli/discussions/1420#discussioncomment-3807513