Skip to content

query.lua:219: query: invalid node type at position 14 for language help #69

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

Closed
AlexSWall opened this issue Dec 12, 2022 · 4 comments
Closed

Comments

@AlexSWall
Copy link

AlexSWall commented Dec 12, 2022

No matter which help file I open, be it an empty file or the help file for treesitter, I'm always getting this error on load and repeatedly as I move around the file.

Error detected while processing FileType Autocommands for "*":
Error executing lua callback: ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: query: invalid node type at position 14 for language help
stack traceback:
        [C]: in function '_ts_parse_query'
        ...im/0.8.1/share/nvim/runtime/lua/vim/treesitter/query.lua:219: in function 'get_query'
        ...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:52: in function 'new'
        ...r/neovim/0.8.1/share/nvim/runtime/lua/vim/treesitter.lua:45: in function '_create_parser'
        ...r/neovim/0.8.1/share/nvim/runtime/lua/vim/treesitter.lua:96: in function 'get_parser'
        .../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:34: in function 'start'
        .../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:42: in function 'attach'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:505: in function 'attach_module'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:528: in function 'reattach_module'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:131: in function <...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:130>

I've removed all of my plugins and configuration and I'm still getting this issue whenever the filetype is help.

@clason
Copy link
Member

clason commented Dec 12, 2022

Not an issue with this repo. Make sure your rtp is set up so both queries and parsers have the same priority.

@AlexSWall
Copy link
Author

AlexSWall commented Dec 12, 2022

Ah, apologies, thanks, I'll look into that. I figured it may be for this repo as it only occurs for help files.

I have no idea how you've come to the idea that rtp is involved; would you mind explaining? I've not done anything with it.

@AlexSWall
Copy link
Author

In case it helps, my rtp is

/Users/alex/.config/nvim,/opt/homebrew/etc/xdg/nvim,/etc/xdg/nvim,/Users/alex/.local/share/nvim/site,/Users/alex/.local/share/nvim/site/pack/packer/start/packer.nvim,
/Users/alex/.local/share/nvim/site/pack/*/start/*,/opt/homebrew/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/opt/homebrew/Cellar/neovim/0.8.1/share/nvim/runti
me,/opt/homebrew/Cellar/neovim/0.8.1/share/nvim/runtime/pack/dist/opt/matchit,/opt/homebrew/Cellar/neovim/0.8.1/lib/nvim,/usr/share/nvim/site/after,/usr/local/share/nvim/site/aft
er,/opt/homebrew/share/nvim/site/after,/Users/alex/.local/share/nvim/site/after,/etc/xdg/nvim/after,/opt/homebrew/etc/xdg/nvim/after,/Users/alex/.config/nvim/after

@justinmk justinmk closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2022
@AlexSWall
Copy link
Author

Running TSUninstall help alerted me to the fact that the help parser had been installed by the homebrew-installed version of Neovim (v0.8.1). I fixed the problem by uninstalling it and doing a HEAD install of neovim instead (brew install --HEAD neovim).

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