-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
query: invalid node type at position 268
and other errors
#27
Comments
I also have this issue running NixOS from the |
Thanks for the additional info @Electrostasy! I saw that PR too, and according to @siraben it seems that the issue might be with the queries, not the grammar (- as the error message does indeed indicate.) This should at least be documented, as I'm apparently not the only one whose tree-sitter config is rendered broken. |
Hey all, Sorry, I didn't realize third-parties/packagers would automatically follow master (at least not without any testing being done first). My apologies for the hassle. I wanted to add a breaking change to get the grammar up to parity with the official Nix parser (i.e. the support for interpolation syntax in paths that was added to Nix in NixOS/nix#5066), and took this as an opportunity to address the collective feedback regarding naming and the shape of the AST. I don't expect any further big changes, and I hope to soon release a version 1.0.0 that can give some assurance around that. |
I believe that with nvim-treesitter/nvim-treesitter#2957 and NixOS/nixpkgs#174740 this issue can be closed. |
Hi everyone, I just installed the nix grammar for treesitter using Specifically, my nix code is not highlighted and when running
How should I proceed to fix this issue? In any case, thanks a lot for the hard work! I really appreciate that there is a treesitter grammar for nix! |
The latest tree-sitter-nix gives me a bunch of errors and fails to parse any Nix buffer. The error I get printed as virtual text in my editor is:
<nix-store-path-to-nvim>/share/nvim/runtime/lua/vim/treesitter/query.lua:161: query: invalid node type at position 268
.Running
:checkhealth nvim-treesitter
gives me the following:I have installed the Nix grammar through Nix (
vimPlugins.nvim-treesitter.withPlugins (plugins: [ ... plugins.tree-sitter-nix ... ])
). My system is an Macbook Air M1 running the latest macOS 12.3 and I have Neovim 0.6.1 installed.I am not quite sure how to interpret these errors, and if the fault is with me or with the grammar. Any help is very much appreciated 😄
The text was updated successfully, but these errors were encountered: