rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

Total failure after some time

Open szagi3891 opened this issue 2 years ago • 7 comments

rust-analyzer version: v0.3.1194

rustc version: rustc 1.65.0-nightly (78a891d36 2022-09-06)

[Error - 1:55:46 PM] Request textDocument/inlayHint failed.
  Message: Invalid offset
  Code: -32603 

When this message appears, the rust-analyser stops responding.

szagi3891 avatar Sep 07 '22 11:09 szagi3891

Does it happen on a specific project? Often? Is the code public?

lnicola avatar Sep 07 '22 14:09 lnicola

This problem started to occur yesterday (probably after updating to a newer version of rust-analyzer). Unfortunately, I can't share the project because it's closed source code. After starting VSC, after about 30 seconds, this problem occurs and rust-analyzer stops hinting.

szagi3891 avatar Sep 07 '22 15:09 szagi3891

I have switched to the "Pre-Release" version. It seems to work much better this version. It has not yet happened to me that the rust-analyser stopped responding

szagi3891 avatar Sep 07 '22 16:09 szagi3891

Only problem with this version is that it eats up almost 100% of my CPU.

szagi3891 avatar Sep 07 '22 16:09 szagi3891

I have switched to version v0.3.1162 and this version behaves very stable.

szagi3891 avatar Sep 07 '22 16:09 szagi3891

I got the same problem, version 0.3.1212

leolara avatar Sep 21 '22 16:09 leolara

I changed to pre-release version 0.4.1215 and it seems to be fine now

leolara avatar Sep 21 '22 16:09 leolara

Closing, as the pre-release back then seemed to have fixed the issue.

If it happens again, please file a new issue and include a way to reproduce the problem, or any other information we could use to track it down.

jonas-schievink avatar Jan 30 '23 17:01 jonas-schievink