nvim-ts-rainbow2
nvim-ts-rainbow2 copied to clipboard
[Bug]: exception (panic) during calling `get_query` from treesitter
Neovim version
v0.9.5
Language affected
Lua
Query
treesitter.nvim
Strategy
global
Description
I've just updated all my NeoVim plugins managed by lazy.nvim. I created an empty CPP file `main.cpp` and got this error when opened it. As this plugin is not maintained in the last 10 months, I think there are some breaking changes in the treesitter plugin, and you need to catch up with them.
Error detected while processing BufReadPost Autocommands for "*":
Error executing lua callback: /tmp/.mount_nvimy0OVEL/usr/share/nvim/runtime/filetype.lua:24: Error exec
uting lua: /tmp/.mount_nvimy0OVEL/usr/share/nvim/runtime/filetype.lua:25: BufReadPost Autocommands for
"*"..FileType Autocommands for "*": Vim(append):Error executing lua callback: ...OVEL/usr/share/nvim/ru
ntime/lua/vim/treesitter/query.lua:259: query: invalid structure at position 338 for language cpp
stack traceback:
[C]: in function '_ts_parse_query'
...OVEL/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get_query'
.../share/nvim/lazy/nvim-ts-rainbow2/lua/ts-rainbow/lib.lua:70: in function 'get_query'
...are/nvim/lazy/nvim-ts-rainbow2/lua/ts-rainbow/module.lua:30: in function 'is_supported'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:387: in function 'is_enabled'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:507: in function 'attach_module'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:532: in function 'reattach_module'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:133: in function <...vim/lazy/nvim-
treesitter/lua/nvim-treesitter/configs.lua:132>
[C]: in function 'nvim_cmd'
/tmp/.mount_nvimy0OVEL/usr/share/nvim/runtime/filetype.lua:25: in function </tmp/.mount_nvimy0O
VEL/usr/share/nvim/runtime/filetype.lua:24>
[C]: in function 'nvim_buf_call'
/tmp/.mount_nvimy0OVEL/usr/share/nvim/runtime/filetype.lua:24: in function </tmp/.mount_nvimy0O
VEL/usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_cmd'
/tmp/.mount_nvimy0OVEL/usr/share/nvim/runtime/filetype.lua:25: in function </tmp/.mount_nvimy0O
VEL/usr/share/nvim/runtime/filetype.lua:24>
[C]: in function 'nvim_buf_call'
/tmp/.mount_nvimy0OVEL/usr/share/nvim/runtime/filetype.lua:24: in function </tmp/.mount_nvimy0O
VEL/usr/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
/tmp/.mount_nvimy0OVEL/usr/share/nvim/runtime/filetype.lua:24: in function </tmp/.mount_nvimy0O
VEL/usr/share/nvim/runtime/filetype.lua:10>