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

Show source for rule file locations #83

Closed
robrix opened this issue Aug 3, 2022 · 0 comments · Fixed by #91
Closed

Show source for rule file locations #83

robrix opened this issue Aug 3, 2022 · 0 comments · Fixed by #91
Labels
enhancement New feature or request

Comments

@robrix
Copy link
Contributor

robrix commented Aug 3, 2022

When we show an error indicating a given location in a rule file, I'd like to see an excerpt of the source around that location. One such should be shown for each rule file location involved in the error (tho maybe we should filter for duplicates).

I don't know if we should also show an excerpt for non-error locations, e.g. "Executing edge … -> … at (x, y)" entries. Perhaps if they're the last one before a source file (syntax node) location?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant