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 where the rule matched for dynamic errors #90

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

Show where the rule matched for dynamic errors #90

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

Comments

@robrix
Copy link
Contributor

robrix commented Aug 9, 2022

I've got a duplicate edge error, which is discovered dynamically when running against some source file. How can this edge already exist? What node is it actually talking about? Who knows!

I'd like the error to include:

  1. Where the match in the source file began, along with an excerpt of (at least) the first line of that source (Show source excerpts for source file locations #84).
  2. Where the bound nodes were within the source, e.g. by picking a terminal-usable colour for each variable, drawing the variable's name in that, and drawing the corresponding span of the excerpt in that as well, with child nodes taking precedence over parent nodes colour-wise.
  3. What variables exist on the various nodes. (Maybe just the ones we've explicitly bound, although a REPL (REPL #77) might allow one to get more.)
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