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

feat(graindoc): Add bind information to errors #2263

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

spotandjake
Copy link
Member

This just adds the bind that is causing the issue to help with debugging. I think it would be beneficial if we had the full error location as well but I don't quite understand how our error_reporting works enough to make that change yet.

Work towards: #1983

@spotandjake spotandjake added the graindoc Issues related to Graindoc label Apr 1, 2025
@spotandjake spotandjake self-assigned this Apr 1, 2025
@ospencer
Copy link
Member

ospencer commented Apr 2, 2025

I think it'd be better to just provide the location. We do lex the comments, so theoretically the information is there.

@spotandjake
Copy link
Member Author

spotandjake commented Apr 2, 2025

I think it'd be better to just provide the location. We do lex the comments, so theoretically the information is there.

That would probably be better, I didn't know how to properly hook into our error handler with the nice locations from the compiler. The location information itself should be easy to get beyond that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graindoc Issues related to Graindoc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants