-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[nightly] highlight broken? #5556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm also getting this. The log is showing that it's seeing something completely different than what's on screen:
|
Is that an incremental sync bug? @RamiHg I suppose you can't reproduce it, can you? |
@lnicola, I can actually reproduce it 100% of the time. It happens on any file I open, edit, then save. |
@DustinByfuglien does it get fixed if you edit the file? |
No. |
@DustinByfuglien if you're saying it started a week ago, would you be able to bisect it? You'd have to use git bisect and build from source a couple of versions. |
I don't know how to do it. But I 'll try to google... Sometimes now RA outputs this error when I edit a my project code:
I guess it is related to coloring bug. |
For me it started with the nightly of the day I posted |
Sorry. I not find simple help for newbies how to do this bisect. |
So the idea is to find a "good" version of Then you can clone the repository and use
Since each try halves the number of commits remaining (like in binary search), it should only take 5 steps or so. https://www.metaltoad.com/blog/beginners-guide-git-bisect-process-elimination might help. |
I compile RA by |
You can try installing it with |
I try "rust-analyzer.serverPath": "rust-analyzer" but error occurs when I reload vscode:
But rust-src is installed |
There was a change in the standard library organization. You should probably "rustup default stable" before running it. It doesn't matter which one you use to build rust-analyzer itself. See #5586 for details. |
Sorry, I used it a little on Windows today, but couldn't reproduce it. There's another open issue that might be related to this one and it seems to be Windows-specific. |
Last time rust-analyzer broke on nightly was caused by a change to the procmacro bridge. I’ve seen some changes recently on rust master affecting the procmacro bridge (rust-lang/rust@62c9fa9). Perhaps this is related? |
this error is because of a move in sysroots. I got this error with highlights and I'll try to see how this error came about. I feel like with the next nightly on monday there's going to come in a lot more reports for windows not working. I'm hoping I can figure out how to properly debug this but I need to get more familiar with the project. |
@Born2Go do you get any errors in the Rust Analyzer Language Server output pane? |
In the "Rust Analyser Language Server Trace" pane I can only see trace logs |
After more testing I received the following stack trace in the Language Server pane:
|
You can enable debug symbols in Cargo.toml (see the comment), but check out #5656. |
Anyone having this issue, can you try the latest nightly release (or building from source)? I suspect that #5659 improved things. |
@lnicola The latest did improve things a lot for me. I no longer have errors on completely wrong lines & the analyzer is not complaining about "Missing SEMI" etc. |
Seems better indeed! I'm closing, feel free to reopen if ever you feel more needs to be addressed |
I don't know if it's RA's update or VSCode's one because got them at the same time, but now, when editing code, highlighting seems broken: I need to close / open the file to have the highlighting right.
The text was updated successfully, but these errors were encountered: