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

Lua query breaking chages #19

Closed
donus3 opened this issue Jan 23, 2022 · 1 comment
Closed

Lua query breaking chages #19

donus3 opened this issue Jan 23, 2022 · 1 comment

Comments

@donus3
Copy link

donus3 commented Jan 23, 2022

After updating the latest nvim-treesitter, this plugin raises the error due to breaking change of Lua queries on PR: nvim-treesitter/nvim-treesitter#2272

Error detected while processing FileType Autocommands for "*":
E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:161: query: invalid node
 type at position 46
stack traceback:
        [C]: in function '_ts_parse_query'
        /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:161: in function 'get_query'
        ...cker/start/nvim-treesitter/lua/nvim-treesitter/query.lua:91: in function 'get_query'
        .../packer/start/nvim-tree-docs/lua/nvim-tree-docs/main.lua:51: in function 'is_supported'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:349: in function 'is_enabled'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:456: in function 'attach_module'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:481: in function 'reattach_module'
        [string ":lua"]:1: in main chunk

After uninstalling the plugin the error does not show anymore.

@donus3
Copy link
Author

donus3 commented Jan 29, 2022

Fixed in commit 4a81ea9

@donus3 donus3 closed this as completed Jan 29, 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

1 participant