Open kjeremy opened 4 years ago
Will try to resolve this one :)
In fact it's already available. But not in a very usable way. The quickfix only appears when you put your cursor where the semicolon is expected.
Example : let t = index<|>
. In fact it underline all the index
word but the quickfix only appear at a specific place which is not great.
As I don't really know quickfix my question is how can we handle this case ? I would like to catch this message from cargo check and then map text range for quickfix to another one which is the same than the one to underline error. But is it the best to do ? Maybe we should update directly from rustc ? Any idea/suggestion @matklad ?
Huge +1 to this - I'm getting an "Expected SEMICOLON" that has me completely mystified:
EDIT: It seems to be something with the return Err(....
because if I comment out that statement then the "expected SEMICOLON" error goes away. No idea at all why rust-analyzer finds that objectionable
EDIT2: I quit and restarted Visual Studio and the error disappeared 😬 Very, very strange
EDIT3: This seems to be the issue of https://github.com/rust-analyzer/rust-analyzer/issues/4829
Oh yes !