I recently starting using rust-tools and rust-analyzer with neovim. At the time of my installation the latest rust-analyzer version was 2022-12-19. Everything worked fine until the next version came up. After I upgraded it via Mason I started getting this error:
Error executing vim.schedule lua callback: ...ker/start/rust-tools.nvim/lua/rust-tools/inlay_hints.lua:216: bad argument #1 to 'sub' (string expected, got table)
stack traceback:
[C]: in function 'sub'
...ker/start/rust-tools.nvim/lua/rust-tools/inlay_hints.lua:216: in function 'render_line'
...ker/start/rust-tools.nvim/lua/rust-tools/inlay_hints.lua:260: in function 'render'
...ker/start/rust-tools.nvim/lua/rust-tools/inlay_hints.lua:170: in function 'handler'
...l/Cellar/neovim/0.8.2/share/nvim/runtime/lua/vim/lsp.lua:1383: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Downgrading to MasonInstall rust-analyzer@2022-12-19 brings back the functionality. Latest version of rust-analyzer that I tested was 2023-01-02 and it still shows the same error.
Let me know if I am missing something or if I need to provide further information.
Hello everyone,
I recently starting using
rust-tools
andrust-analyzer
with neovim. At the time of my installation the latestrust-analyzer
version was2022-12-19
. Everything worked fine until the next version came up. After I upgraded it via Mason I started getting this error:Downgrading to
MasonInstall rust-analyzer@2022-12-19
brings back the functionality. Latest version of rust-analyzer that I tested was2023-01-02
and it still shows the same error.Let me know if I am missing something or if I need to provide further information.