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

Workaround / fix tree-sitter wildcard issue #1609

Closed
pokey opened this issue Jul 11, 2023 · 0 comments · Fixed by #1800
Closed

Workaround / fix tree-sitter wildcard issue #1609

pokey opened this issue Jul 11, 2023 · 0 comments · Fixed by #1800
Assignees
Labels
bug Something isn't working code quality Improvements to code quality to discuss Plan to discuss at meet-up
Milestone

Comments

@pokey
Copy link
Member

pokey commented Jul 11, 2023

See tree-sitter/tree-sitter#2484. That issue is a blocker for us, because the workaround of explicitly listing all possible types instead of using _ is quite painful. The maintainers seem to be completely ignoring the issue, and hopefully it won't be too bad to fix (🤞), so let's tackle it ourselves.

Alternately, we could work around it by just not passing in offsets to query.matches. That is not great from a performance perspective, but might be a reasonable solution for now. Fwiw if the user uses "next", we are currently running the query on the whole document starting from target start, so we already are running large queries sometimes. Obv could improve that by exponentially growing search range, but we don't yet, so probably fine to hack here as well for now

@pokey pokey added this to the Short list milestone Jul 11, 2023
@pokey pokey added bug Something isn't working code quality Improvements to code quality labels Jul 11, 2023
@pokey pokey self-assigned this Jul 11, 2023
@pokey pokey added the to discuss Plan to discuss at meet-up label Jul 11, 2023
github-merge-queue bot pushed a commit that referenced this issue Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code quality Improvements to code quality to discuss Plan to discuss at meet-up
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant