-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Out-of-bounds panics in Worker thread #16200
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
Happening to me as well, constantly crashing until it goes to the "Rust-analyzer has crashed 5 times in the last 3 minutes" spiel, |
Does anyone have a way to reproduce this? |
I've created a fairly minimal example. It depends on rocket v0.5.0, my apologies for the large dependency. fn main() {}
#[rocket::get("/my-api?<url>")]
async fn ra_16200_repro(url: &str) -> Result<(), ()> {
Ok(())
} The error seems to occur here when overing over Running In case exact dependencies are important, I've zipped a It's worth noting that in my own codebase, the error happens more often than in this repro (where it only seems to happen when hovering over |
|
and
may point to SELF_REF which breaks my assumption that they only occur in opaque_and_semitransparent and opaque fields, we should do a SELF_REF check when assigning to parent and point that to ctxt in that function if it is a SELF_REF
So those should be |
fix: Fix SyntaxContextID using incorrect self IDs Follow up to #16200, there was another logical bug there.
rust-analyzer version: 0.4.1783-standalone (85fb463 2023-12-24)
rustc version: rustc 1.74.1 (a28077b28 2023-12-04)
relevant settings: n/a
Today when I started using rust-analyzer in a private project, I started getting a lot of errors out of nowhere when typing and hovering over text. The panic message is always an index out of bounds, and it happened on both the current release and current pre-release version of rust-analyzer.
The text was updated successfully, but these errors were encountered: