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

Deprecation warning for smart_rename #34

Open
andrewferrier opened this issue Apr 20, 2022 · 1 comment
Open

Deprecation warning for smart_rename #34

andrewferrier opened this issue Apr 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@andrewferrier
Copy link

Describe the bug
As of recently, the first use of smart_rename within a NeoVim session has started emitting a deprecation warning:

nvim-treesitter.ts_utils.get_node_text is deprecated: use vim.treesitter.query.get_node_text

To Reproduce
Steps to reproduce the behavior:

  1. Install and configure nvim-treesitter-refactor, assign a key to smart_rename.
  2. Open a file, and whilst on an identifier, press that key.

Expected behavior
Usual rename behaviour.

Output of :checkhealth nvim_treesitter

nvim_treesitter: health#nvim_treesitter#check
========================================================================
## Installation
  - OK: `tree-sitter` found 0.20.6 (parser generator, only needed for :TSInstallFromGrammar)
  - OK: `node` found v17.9.0 (only needed for :TSInstallFromGrammar)
  - OK: `git` executable found.
  - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
    Version: Apple clang version 13.1.6 (clang-1316.0.21.2.3)
  - OK: Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

## Parser/Features H L F I J
  - llvm           ✓ . . . . 
  - http           ✓ . . . ✓ 
  - scheme         ✓ . ✓ . ✓ 
  - prisma         ✓ . . . . 
  - rasi           ✓ ✓ ✓ ✓ . 
  - json           ✓ ✓ ✓ ✓ . 
  - yaml           ✓ ✓ ✓ ✓ ✓ 
  - rego           ✓ . . . ✓ 
  - norg           . . . . . 
  - clojure        ✓ ✓ ✓ . ✓ 
  - jsonc          ✓ ✓ ✓ ✓ ✓ 
  - commonlisp     ✓ ✓ ✓ . . 
  - vala           ✓ . . . . 
  - lalrpop        ✓ ✓ . . . 
  - cuda           ✓ ✓ ✓ ✓ ✓ 
  - solidity       ✓ . . . . 
  - wgsl           ✓ . ✓ . . 
  - cooklang       ✓ . . . . 
  - glsl           ✓ ✓ ✓ ✓ ✓ 
  - scss           ✓ . . ✓ . 
  - elvish         ✓ . . . ✓ 
  - hack           ✓ . . . . 
  - dot            ✓ . . . ✓ 
  - astro          ✓ ✓ ✓ ✓ ✓ 
  - foam           ✓ ✓ ✓ ✓ ✓ 
  - rust           ✓ ✓ ✓ ✓ ✓ 
  - query          ✓ ✓ ✓ ✓ ✓ 
  - fusion         ✓ ✓ ✓ ✓ . 
  - heex           ✓ ✓ ✓ ✓ ✓ 
  - python         ✓ ✓ ✓ ✓ ✓ 
  - ocaml          ✓ ✓ ✓ . ✓ 
  - phpdoc         ✓ . . . . 
  - hocon          ✓ . . . ✓ 
  - hjson          ✓ ✓ ✓ ✓ ✓ 
  - ocaml_interface✓ ✓ ✓ . ✓ 
  - markdown       ✓ . ✓ . ✓ 
  - pioasm         ✓ . . . ✓ 
  - elm            ✓ . . . ✓ 
  - lua            ✓ ✓ ✓ ✓ ✓ 
  - yang           ✓ . ✓ . . 
  - vim            ✓ ✓ . . ✓ 
  - c_sharp        ✓ ✓ ✓ . ✓ 
  - ninja          ✓ . ✓ ✓ . 
  - help           ✓ . . . . 
  - ruby           ✓ ✓ ✓ ✓ ✓ 
  - todotxt        ✓ . . . . 
  - gomod          ✓ . . . ✓ 
  - perl           ✓ . ✓ . . 
  - dart           ✓ ✓ . ✓ ✓ 
  - slint          ✓ . . ✓ . 
  - vue            ✓ . ✓ ✓ ✓ 
  - graphql        ✓ . . ✓ ✓ 
  - zig            ✓ . ✓ ✓ ✓ 
  - c              ✓ ✓ ✓ ✓ ✓ 
  - php            ✓ ✓ ✓ ✓ ✓ 
  - teal           ✓ ✓ ✓ ✓ ✓ 
  - dockerfile     ✓ . . . ✓ 
  - java           ✓ ✓ . ✓ ✓ 
  - ql             ✓ ✓ . ✓ ✓ 
  - regex          ✓ . . . . 
  - kotlin         ✓ ✓ ✓ . ✓ 
  - scala          ✓ . ✓ . ✓ 
  - beancount      ✓ . ✓ . . 
  - pascal         ✓ ✓ ✓ ✓ ✓ 
  - julia          ✓ ✓ ✓ ✓ ✓ 
  - tlaplus        ✓ ✓ ✓ . ✓ 
  - html           ✓ ✓ ✓ ✓ ✓ 
  - toml           ✓ ✓ ✓ ✓ ✓ 
  - r              ✓ ✓ . ✓ ✓ 
  - svelte         ✓ . ✓ ✓ ✓ 
  - comment        ✓ . . . . 
  - erlang         . . . . . 
  - d              ✓ . ✓ ✓ ✓ 
  - devicetree     ✓ ✓ ✓ ✓ ✓ 
  - elixir         ✓ ✓ ✓ ✓ ✓ 
  - pug            ✓ . . . ✓ 
  - sparql         ✓ ✓ ✓ ✓ ✓ 
  - fennel         ✓ ✓ . . ✓ 
  - gleam          ✓ ✓ ✓ ✓ ✓ 
  - gdscript       ✓ ✓ . ✓ ✓ 
  - surface        ✓ . ✓ ✓ ✓ 
  - typescript     ✓ ✓ ✓ ✓ ✓ 
  - godot_resource ✓ ✓ ✓ . . 
  - eex            ✓ . . . ✓ 
  - jsdoc          ✓ . . . . 
  - bibtex         ✓ . ✓ ✓ . 
  - make           ✓ . . . ✓ 
  - ledger         ✓ . ✓ ✓ ✓ 
  - turtle         ✓ ✓ ✓ ✓ ✓ 
  - rst            ✓ ✓ . . ✓ 
  - cpp            ✓ ✓ ✓ ✓ ✓ 
  - fortran        ✓ . ✓ ✓ . 
  - go             ✓ ✓ ✓ ✓ ✓ 
  - cmake          ✓ . ✓ . . 
  - bash           ✓ ✓ ✓ . ✓ 
  - gowork         ✓ . . . ✓ 
  - tsx            ✓ ✓ ✓ ✓ ✓ 
  - hcl            ✓ . ✓ ✓ ✓ 
  - json5          ✓ . . . ✓ 
  - glimmer        ✓ . . . . 
  - ocamllex       ✓ . . . ✓ 
  - verilog        ✓ ✓ ✓ . ✓ 
  - fish           ✓ ✓ ✓ ✓ ✓ 
  - latex          ✓ . ✓ . ✓ 
  - supercollider  ✓ ✓ ✓ ✓ ✓ 
  - javascript     ✓ ✓ ✓ ✓ ✓ 
  - css            ✓ . ✓ ✓ ✓ 
  - haskell        ✓ . . . ✓ 
  - nix            ✓ ✓ ✓ . ✓ 

  Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
         +) multiple parsers found, only one will be used
         x) errors found in the query, try to run :TSUpdate {lang}

Output of nvim --version

NVIM v0.7.0
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.7.0/share/nvim"

Run :checkhealth for more info
@andrewferrier andrewferrier added the bug Something isn't working label Apr 20, 2022
@andrewferrier
Copy link
Author

andrewferrier commented Apr 20, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant