Skip to content

Add a crash handler to asc #1764

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

Merged
merged 3 commits into from
Mar 29, 2021
Merged

Add a crash handler to asc #1764

merged 3 commits into from
Mar 29, 2021

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Mar 28, 2021

Compiler crashes are annoying, and the stack trace produced is often not very useful. So this adds a crash handler to asc (currently on initialize and compile) that lets the user know that this should not happen and gives some advice how to debug the problem, or otherwise to let us know.

  • I've read the contributing guidelines

@MaxGraey
Copy link
Member

Could you also wrap parse stages? Or it's unnecessary?

@dcodeIO
Copy link
Member Author

dcodeIO commented Mar 29, 2021

Now covers all the stages, and also mentions the stage in the message.

@dcodeIO dcodeIO requested a review from MaxGraey March 29, 2021 17:10
Copy link
Member

@MaxGraey MaxGraey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dcodeIO dcodeIO merged commit 639d5e0 into master Mar 29, 2021
@dcodeIO dcodeIO deleted the crashhandler branch June 1, 2021 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants