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

Multiple aliases that resolve to the same name can cause a query execution bug #2641

Open
Tracked by #2895
omentic opened this issue Sep 22, 2023 · 0 comments
Open
Tracked by #2895
Assignees
Labels
bug query Related to tree-sitter queries executor
Milestone

Comments

@omentic
Copy link

omentic commented Sep 22, 2023

Attempting to match the query (function (lhs (atom) @function)) with the tree-sitter-agda grammar throws a query error: impossible pattern, and fails to match. This is despite said query existing. Examples: DoNotation.agda, DoNotation.agda.scm

It was brought up by @amaanq that this is probably a core bug when an alias points to the same symbol name for multiple nodes?

@amaanq amaanq mentioned this issue Feb 2, 2024
33 tasks
@dundargoc dundargoc added this to the 0.21.0 milestone Feb 6, 2024
@ObserverOfTime ObserverOfTime modified the milestones: 0.21.0, 0.23 Apr 11, 2024
@ObserverOfTime ObserverOfTime added bug query Related to tree-sitter queries executor labels Apr 12, 2024
@ObserverOfTime ObserverOfTime modified the milestones: 0.23, 1.0 May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug query Related to tree-sitter queries executor
Projects
None yet
Development

No branches or pull requests

4 participants