-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Constant panic/crashing while typing on a string inside a macro #16731
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
It seems you already reported this as #16712, or is this a different panic? If you are still using the RA version you mentioned, you'll need to update it to get the fix. |
The crashing I reported on my previous issue stopped when I installed the nightly toolchain, so I'm guessing this is different. That said, I thought I had updated rust-analyzer, but I just discovered rustup didn't install it with the nightly toolchain, so apparently the only thing that changed is the rustc version. Even after manually adding rust-analyzer, VS Code is refusing to switch to it, I'll figure out what's wrong and report back once I have tested this on nightly. |
For anyone wondering, what was happening with VS Code was that it seems that on Windows it downloads its own rust-analyzer binary rather than using the one in Either way, I got VS Code to use
Is this intended as a fix? |
Doesn't download, but bundle it. The VSIX has a matching binary, you can find the path here (
Setting |
Ah, I see! Thanks! |
Hello! I'm getting panic messages each time I type a character inside a string formatting macro. I have been able to reproduce this on an empty project with nothing but a
main
method like so:To trigger the bug, copy and paste this into the
main.rs
of a new, empty project, and then put the cursor somewhere between the{
and the}
, and type anything. Each character typed causes a panic message being printed to stderr. I have tested this behavior withprintln!
,panic!
, andformat!
and the panics happen on all three.NOTE: The bug only happens if there is an opening AND closing bracket! The bug does NOT happen when typing like so:
The bug does happen when typing like so:
Here is a text file with my stderr output.
rust-analyzer version: 0.3.1860-standalone (5346002 2024-02-25)
rustc 1.78.0-nightly (878c8a2a6 2024-02-29)
The text was updated successfully, but these errors were encountered: