nvim-lua / lsp_extensions.nvim

Repo to hold a bunch of info & extension callbacks for built-in LSP. Use at your own risk :wink:
MIT License
212 stars 18 forks source link

Updating to nvim 0.6 and rust-analzyer 2021-11-29 breaks inlayHints #30

Open felipesere opened 2 years ago

felipesere commented 2 years ago

I've just updated both so I'm not 100% sure which one it is (though my money is on RA), but when I start nvim I now get the following error on a Rust file

Error detected while processing InsertLeave Autocommands for "*":
method rust-analyzer/inlayHints is not supported by any of the servers registered for the current buffer

Type hints do appear though, which is super weird?

kodesoul commented 2 years ago

I'm running across this too !!

tjkirch commented 2 years ago

For others wanting to follow along, there's an issue on the rust-analyzer repo too. The issue's author says it affects VSCode too, not just Neovim. https://github.com/rust-analyzer/rust-analyzer/issues/10554

hanzelik commented 2 years ago

I was having the exact same problem @felipesere. I downgraded from nvim 0.6 to nvim 0.5.1, and I'm getting no errors with rust-analyzer anymore. Seems there was an update to nvim that caused rust-analyzer to break.

luisvgs commented 2 years ago

@hanzelik @tjkirch there's any workaround until this problem is fixed? I updated nvim recently and my inlayHints got messy as well. Thanks in advance.

tjkirch commented 2 years ago

@bluretrece I wish I knew... I had to downgrade neovim to 0.5.1.

polyzen commented 2 years ago

Fwiw inlay hints works with https://github.com/simrat39/rust-tools.nvim.

jan-xyz commented 2 years ago

There are discussions to bring this to Neovim proper: https://github.com/neovim/neovim/issues/18086