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 predicates in query results in query compilation error #110

Closed
cdmistman opened this issue Jun 1, 2023 · 2 comments
Closed

multiple predicates in query results in query compilation error #110

cdmistman opened this issue Jun 1, 2023 · 2 comments

Comments

@cdmistman
Copy link

cdmistman commented Jun 1, 2023

using the following query:

(import_statement
	source: (string) @import)
(
	(call_expression
		function: (identifier) @function
		arguments: (arguments ((_) @other-imports)? ((_) @import) .))
	(#eq? @other-imports "")
	(#eq? @function "require"))

results in the following error:

wrong number of arguments to `#eq?` predicate. Expected 2, got 6 

i've tested this using the tree-sitter cli with the JS language and it works. note that the issue appears only when both eq? predicates are present in the 2nd pattern.

@joshlarsen
Copy link

Looks like this would be fixed in #109

@smacker
Copy link
Owner

smacker commented Jul 20, 2023

The PR has been merged. Please try again and feel free to re-open the issue if the problem was not fixed.

@smacker smacker closed this as completed Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants