Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.4k
feat(treesitter): use better error messages in query#17984
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| self.captures=self.info.captures | ||
| query_cache[lang][query]=self | ||
| returnself | ||
| print("OKAY") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
leftover debug message?
vigoux commentedApr 3, 2022
@bfredl I might need you insights here, because I can't find any way to catch the error from the C side on the lua side. I wonder if I should just mimic a |
clason commentedSep 17, 2023
I think this is now itself superseded :) |
This PR is an attempt to return better error messages when parsing
queries.
Somehow I can't handle the error object from the lua side.
It is even weirder: when returning any error from the C-side, it is
not catched by
pcallafter, norxpcall...TODO:
Superseedes#14053