Closed Clish254 closed 2 years ago
Can't reproduce. Set "rust-analyzer.trace.server": "verbose"
in your coc-settings.json, opening a rust file, then :CocCommand workspace.showOutput rust-analyzer
, search textDocument/inlayHint
in the logs.
My inlayHints has stopped too.
I created the gist following your recommendations.
Thanks in advance.
@ricardoseriani from your logs https://gist.github.com/ricardoseriani/845f97206078c969b5b96b88dcd6d3e3#file-rust-analyzer-L1078-L1080
rust-analyzer isn't ready to provide inlay hints. Please waiting rust-analyzer ready to work.
It seem that after entering vim insert mode and returning to normal mode the inlayHints start appearing.
In fact, the hints starting appearing again after I add one blank line, using the letter O
in normal mode, or better yet, after editing the file in any way (inserting some text, blank line, etc)
Please, can you try this @Clish254 ?
Because if it is solves for you too, them we can narrow down the problem.
I switched to rust-tools @ricardoseriani
after editing the file in any way
Looks like it's related inlayHints fetching, will look into this.
@ricardoseriani what's your coc.nvim version? You can get it from :CocInfo
.
vim version: VIM - Vi IMproved 9.0 9000432 node version: v16.16.0 coc.nvim version: 0.0.82-b6e723ca 2022-09-13 11:25:46 +0800
This has been fixed in coc.nvim master https://github.com/neoclide/coc.nvim/commit/ea87337b9275f043cd5273630e1a718bb4418888
I was getting type hints before on variables but after uninstalling and installing coc-rust-analyzer again I stopped getting type hints. I've tried to search for a solution and added
"rust-analyzer.inlayHints.enable": true
to my coc-settings.json but i'm still getting the same issue. What's the output of:CocInfo
Here is the output from :CocInfoWhat's the output of
:CocCommand rust-analyzer.serverVersion
rust-analyzer 0.3.1194-standalone (67920f797 2022-09-04)