Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

[Bug]: exception (panic) during calling get_query from treesitter #69

Open
MuhammadSawalhy opened this issue May 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@MuhammadSawalhy
Copy link

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>
@MuhammadSawalhy MuhammadSawalhy added the bug Something isn't working label May 27, 2024
@HiPhish
Copy link
Owner

HiPhish commented May 27, 2024

This plugin is deprecated, please use HiPhish/rainbow-delimiters.nvim instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants