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

Invalid Query for Java #54

Closed
505aaron opened this issue Jul 20, 2022 · 3 comments
Closed

Invalid Query for Java #54

505aaron opened this issue Jul 20, 2022 · 3 comments

Comments

@505aaron
Copy link

I am seeing the following error:

tsc-make-query: Query contains invalid node type: "line_comment", (66 . 3), 1504

It looks like changing this:
https://github.com/meain/evil-textobj-tree-sitter/blob/master/queries/java/textobjects.scm#L65-L68

to this works:

(comment) @comment.outer

I don't have full context here, otherwise I would change it myself.

@meain
Copy link
Owner

meain commented Jul 21, 2022

The issue is that line_comment is a new addition to the java grammar and is not currently available in emacs-tree-sitter/tree-sitter-langs. I have opened a pr at emacs-tree-sitter/tree-sitter-langs#110 to fix this.

@505aaron
Copy link
Author

Thank you @meain

@meain
Copy link
Owner

meain commented Aug 22, 2022

This should now be fixed upstream.

@meain meain closed this as completed Aug 22, 2022
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

2 participants