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

nvim-treesitter.ts_utils.get_node_range is deprecated: use vim.treesitter.get_node_range #44

Closed
rbuchberger opened this issue Mar 23, 2023 · 4 comments

Comments

@rbuchberger
Copy link

Hi! Thanks for the great plugin.

I'm getting a deprecation warning every time I start vim; tracked it down here.

~/.local/share/nvim
$ rg ts_utils\.get_node_range
plugged/nvim-biscuits/lua/nvim-biscuits/init.lua
51:                ts_utils.get_node_range(node)

plugged/nvim-biscuits/lua/nvim-biscuits/languages/html.lua
10:        ts_utils.get_node_range(ts_node)

plugged/nvim-biscuits/lua/nvim-biscuits/languages/python.lua
13:        ts_utils.get_node_range(ts_node)
15:        ts_utils.get_node_range(ts_node:parent())

plugged/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua
326:    "nvim-treesitter.ts_utils.get_node_range is deprecated: use vim.treesitter.get_node_range",
@zhengpd
Copy link

zhengpd commented Mar 24, 2023

There is an open PR for this #43 . Maybe @cmgriffing would review it when he got time.

@cmgriffing
Copy link
Contributor

Thanks everyone. Sorry for the delay in merging the PR.

@cmgriffing
Copy link
Contributor

Please reopen the issue if it actually does not solve it.

@zhengpd
Copy link

zhengpd commented Mar 28, 2023

I updated to latest commit and confirmed the warning is gone.

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

3 participants