`nvim-treesitter.ts_utils` deprecation warning
gennaro-tedesco opened this issue · comments
Thank you for the great plugin, it is awesome!
I am using the nightly version
NVIM v0.9.0-dev-935+g3a5dddf24-dirty
Build type: Release
LuaJIT 2.1.0-beta3
and I see the treesitter deprecation warning
nvim-treesitter.ts_utils.is_in_node_range is deprecated: use vim.treesitter instead
probably in this import.
It may be useful to address it at some point :)
This is a warning in the nvim-treesitter code base not nvim-treesitter-textsubjects. I use that import here and here, both of which are calls to update_selection
which is a non-deprecated function. On the latest version of nvim-treesitter
, that function calls vim.treesitter.get_node_range
source. Are you on the latest nvim-treesitter?
Are you on the latest nvim-treesitter?
I am on the latest commit. May it be that the deprecation is issued on import of the module require('nvim-treesitter.ts_utils')
rather than on explicit call to its functions?
I am on the latest commit. May it be that the deprecation is issued on import of the module require('nvim-treesitter.ts_utils') rather than on explicit call to its functions?
Not according to the source code. Are you sure it's this plugin?
You can try triggering an error to figure out where the function is being called from, foobar.baz()
will give you a stack trace.
I'm going to close this issue since there's no indication it's this plugin causes the issue, if you can show a stack trace referencing this plugin's code which indicates an issue on my end then I'll reopen.
You are right. I did some deeper debugging and realised it is apparently nvim-treesitter/nvim-treesitter-textobjects
that throws the exception (which initially I loaded on event with yours, generating confusion).
Apologies for having wasted some time :)
no worries :)