HiPhish / nvim-ts-rainbow2

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

[Bug]: LanguageTree:for_each_child() is deprecated in neovim 0.10 #65

Closed oschrenk closed 6 months ago

oschrenk commented 6 months ago

Neovim version

0.10.0

Language affected

No response

Query

No response

Strategy

No response

Description

Deprecation warning in neovim 0.10

LanguageTree:for_each_child() is deprecated, use LanguageTree:children() in
stead. :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'
        ...lazy/nvim-ts-rainbow2/lua/ts-rainbow/strategy/global.lua:98: in
function 'setup_parser'
        ...lazy/nvim-ts-rainbow2/lua/ts-rainbow/strategy/global.lua:135: in
 function <...lazy/nvim-ts-rainbow2/lua/ts-rainbow/strategy/global.lua:133>

        [C]: in function 'pcall'
        ...e/nvim/lazy/nvim-ts-rainbow2/lua/ts-rainbow/internal.lua:82: in
function 'attach'
        ...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:509: 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'
        ...rew/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:36: in
function <...rew/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35>
        [C]: in function 'nvim_buf_call'
        ...rew/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:35: in
function <...rew/Cellar/neovim/0.10.0/share/nvim/runtime/filetype.lua:10>
oschrenk commented 6 months ago

Just seeing now that this plugin is deprecated for other reasons and that the replacement is https://github.com/HiPhish/rainbow-delimiters.nvim

Thank you!