Skip to content

Code snippet in error messages#271

Merged
jsiek merged 5 commits intojsiek:mainfrom
mateidragony:cool-error-messages
Jan 6, 2026
Merged

Code snippet in error messages#271
jsiek merged 5 commits intojsiek:mainfrom
mateidragony:cool-error-messages

Conversation

@mateidragony
Copy link
Collaborator

Added capability of printing out code snippets when Deduce throws an error. For now this only happens on parse error messages, but we can easily extend this to other error messages as well.

Some work will also inevitably be required to make sure that our error locations are actually correct. When I made Deduce print snippets for every error I saw that some of the code locations were a little off and misleading.

@jsiek
Copy link
Owner

jsiek commented Jan 6, 2026

Excellent, thank you Matei!

@jsiek jsiek merged commit 50bf673 into jsiek:main Jan 6, 2026
1 check 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