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

Usage of deprecated methods #21

Open
hood opened this issue Jun 15, 2022 · 0 comments
Open

Usage of deprecated methods #21

hood opened this issue Jun 15, 2022 · 0 comments

Comments

@hood
Copy link

hood commented Jun 15, 2022

Getting

nvim-treesitter.ts_utils.get_node_text is deprecated: use vim.treesitter.query.get_node_text
E5108: Error executing lua /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:364: offset_encoding: expected string, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:364: in function 'doc_node_at_cursor'

whenever trying to use the plugin on latest nightly. vim.treesitter.query.get_node_text should be used instead of nvim-treesitter.ts_utils.get_node_text

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

1 participant