Closed Kryszak closed 1 year ago
The issue seems to be here as it is passing a table instead of a string:
https://github.com/simrat39/rust-tools.nvim/blob/master/lua/rust-tools/inlay_hints.lua#L216
Seems like there's already a pull request to solve it: #308.
This issue actually seems to be a duplicate of #300.
There are multiple PRs for this: https://github.com/simrat39/rust-tools.nvim/pull/307 and https://github.com/simrat39/rust-tools.nvim/pull/308
Same thing actually happens when opening the floating preview window too if you want to use the debugging feature
E5108: Error executing lua ...lar/neovim/0.8.1/share/nvim/runtime/lua/vim/lsp/util.lua:1525: contents: expected table, got nil
stack traceback:
[C]: in function 'error'
vim/shared.lua: in function 'validate'
...lar/neovim/0.8.1/share/nvim/runtime/lua/vim/lsp/util.lua:1525: in function 'open_floating_preview'
[string ":lua"]:1: in main chunk
guys i dont think simrat39 is going to merge the pr any time soon, so just merge the pr into your own fork for now.
(for those who dont want to fork just use a pr's fork like https://github.com/kdarkhan/rust-tools.nvim temporary)
Is there any reason why it's not getting merged? Is this repo just not being maintained very much currently?
I guess there is just an avalanche of issues, and @simrat39 cannot handle all of them instantly.
For everyone that temporeraly switched to a fork double check that you've switched back to main!
After update of rust-tools and Mason rust-analyzer inlay hints stopped working with following error: