rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.06k stars 1.56k forks source link

Errors in code doesn't show unless file is written. #10884

Open copypasteonly opened 2 years ago

copypasteonly commented 2 years ago

Hello, I was trying to set up rust-analyzer for neovim and found out that the error messages would only appear if I write the file. E.g. when I put in some gibberish nothing would show on the side of the code telling me that this should not be here, only after I do :w would I get an error message shown. This was not the case for me when I setup C using ccls and Python with pyright. I'm using lsp-config to configure my lang servers, and have tried both rust-tools and rust-analyzer by itself, still the same behavior.

lnicola commented 2 years ago

Do syntax errors (not type) show up?

copypasteonly commented 2 years ago

Do syntax errors (not type) show up?

Nope nothing shows up before I do :w