Skip to content
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

Report error locations on unhandled exceptions #1306

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

digama0
Copy link
Contributor

@digama0 digama0 commented Sep 21, 2024

PolyML keeps track of the location of every exception (the position of the raise keyword), and this information is very useful for debugging, so let's show that. In VSCode it also enables the ability to click in the terminal to go directly to the error.

A few other locations had to be adjusted to use reraise to avoid clobbering the location information.

@mn200
Copy link
Member

mn200 commented Sep 23, 2024

Awesome! I didn't know PolyML's exception module was so rich.

@mn200 mn200 merged commit 8094199 into HOL-Theorem-Prover:develop Sep 23, 2024
4 checks passed
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