Closed petrovito closed 2 months ago
@petrovito can you make a test, set "codeLens.position": "eol"
in your coc-settings.json and try again.
that didn't help. but I have played a bit more with it now, and it seems like this behavior only happens if the code in the buffer is syntactically correct: if there are compile errors then everything is good (besides the compile errors of course :D).
a bit more info:
:w
only get code analysis after I save the file
Yes, rust-analyzer only analyze on-saving.
Debugging on this.
I can't reproduce this, upgrade your nvim and try again.
What's the output of
:CocInfo
What's the output of
:CocCommand rust-analyzer.serverVersion
rust-analyzer 0.3.1649-standalone
What's your coc-rust-analyzer version? You can get it from
:CocList extensions
0.73.0
I have a weird and annoying problem: every time I save a .rs file using
:w
or:wa
the second line of file will be replaced with the name of the library:Before
After
:w
with
backgammon-bot
being the name of the crateAny ideas?
I have never seen this before with any other language, also when I
:CocUninstall coc-rust-analyzer
this problem disappears, but comes back again upon reinstalling .