HiPhish / nvim-ts-rainbow2

Rainbow delimiters for Neovim through Tree-sitter
https://gitlab.com/HiPhish/nvim-ts-rainbow2
Apache License 2.0
337 stars 35 forks source link

[Bug]: LanguageTree deprecation warning #67

Open lukeurban opened 1 month ago

lukeurban commented 1 month ago

Neovim version

0.10.0

Language affected

No response

Query

No response

Strategy

No response

Description

I've updated neovim to newest version and I am getting a deprecation warning

LanguageTree:for_each_child() is deprecated, use LanguageTree:children() instead. :help deprecated
Feature will be removed in Nvim 0.11
...
stack traceback:
        ...0/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:473: in function 'for_each_child'
        ...tart/nvim-ts-rainbow2/lua/ts-rainbow/strategy/global.lua:98: in function 'setup_parser'
        ...tart/nvim-ts-rainbow2/lua/ts-rainbow/strategy/global.lua:135: in function <...tart/nvim-ts-rainbow2/lua/ts-rain
bow/strategy/global.lua:133>
        [C]: in function 'pcall'
        ...acker/start/nvim-ts-rainbow2/lua/ts-rainbow/internal.lua:82: in function 'attach'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:509: in function 'attach_module'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:532: in function 'reattach_module'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:133: in function <...er/start/nvim-treesitter/lua/nvim
-treesitter/configs.lua:132>
        [C]: in function 'nvim_cmd'
        ...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:36: in function <...cal/Cellar/neovim/0.10.0/share/nvi
m/runtime/filetype.lua:35>
        [C]: in function 'nvim_buf_call'
        ...cal/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35: in function <...cal/Cellar/neovim/0.10.0/share/nvi
m/runtime/filetype.lua:10>
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function <vim/_editor.lua:0>
        [C]: in function 'pcall'
        ...acker/start/telescope.nvim/lua/telescope/actions/set.lua:162: in function 'run_replace_or_original'
        ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
        ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'run_replace_or_original'
        ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'
        ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:253: in function <...k/packer/start/telescope.nvim/lua
/telescope/mappings.lua:252>
lukeurban commented 1 month ago

Already Fix in PR https://github.com/HiPhish/nvim-ts-rainbow2/pull/66

HiPhish commented 1 month ago

Hi, this plugin is deprecated, use rainbow-delimiters.nvim instead.

icholy commented 1 month ago

@HiPhish if the plugin is deprecated, then you should archive the repo to make that clear.

HiPhish commented 1 month ago

@icholy Good point, I'm going to do that now.