Skip to content

Display error with full stack trace for crashed compiler #357

@prolativ

Description

@prolativ

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:

  • 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions