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

Propagating panic for cycle head that panicked in an earlier execution in that revision

Open chenxiang0010 opened this issue 9 months ago • 42 comments

rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P) 0.3.2786 rustc version: (eg. output of rustc -V)

rustc 1.93.0 (254b59607 2026-01-19)

editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)

relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)

repository link (if public, optional): (eg. rust-analyzer)

code snippet to reproduce:

// add your code here

I have encountered this problem on different computers. Sometimes it will appear when opening vscode, and sometimes it will appear after restarting the rust-analyzer server. I try cargo new to create a new project, but this problem does not occur. When this problem occurs, I empty the main.rs and restore it, which can avoid this problem.

The log keeps printing errors.

Image

Image

When I set: "rust-analyzer .server.path": "/usr/lib/rustup/bin/rust-analyzer",everything is normal.

Image

Image

chenxiang0010 avatar Feb 09 '26 13:02 chenxiang0010

can confirm. same error here

LiAuTraver avatar Feb 09 '26 14:02 LiAuTraver

same tody

Image

Baiyuetribe avatar Feb 09 '26 14:02 Baiyuetribe

Same on vscode on windows and wsl rust-analyzer version 0.3.2786

Chocolateandmilkwin avatar Feb 09 '26 15:02 Chocolateandmilkwin

Same for me on

  • VSCode 1.109.0
  • Linux Mint 22.3 (based on Ubuntu 24.04) x64
  • rustc 1.93.0 (254b59607 2026-01-19)
  • rust-analyzer version 0.3.2786

Switching back to rust-analyzer 0.3.2777 solved the issue for me.

orzechow avatar Feb 09 '26 16:02 orzechow

Getting the same bug on:

  • VScode 1.109.0
  • Windows 11 Home OS build 26100.7623
  • rustc 1.93.0 (254b59607 2026-01-19)
  • rust-analyzer 0.3.2786

Switching back to 0.3.2777 solved the issue for me.

9D-Tony avatar Feb 09 '26 17:02 9D-Tony

Same issue here:

  • VSCode: 1.109.0 (Universal)
  • MacOS Tahoe: Version 26.2 (25C56)
  • RustC: 1.93.0 (254b59607 2026-01-19)
  • rust-analyzer: 0.3.2786

Rolling back to 0.3.2777 worked after restarting VSCode, as suggested below.

Orkking2 avatar Feb 09 '26 17:02 Orkking2

Is there a backtrace? Can you attach the log as text (not image)?

ChayimFriedman2 avatar Feb 09 '26 20:02 ChayimFriedman2

I guess https://github.com/rust-lang/rust-analyzer/pull/21380 might be related

ShoyuVanilla avatar Feb 09 '26 20:02 ShoyuVanilla

Is there a backtrace? Can you attach the log as text (not image)?

The log is full of the same content as in the screenshot, nothing else.

chenxiang0010 avatar Feb 10 '26 00:02 chenxiang0010

I have the same issue:

  • VSCode 1.109.0
  • Fedora Linux 43 (Workstation Edition)
  • rustc 1.92.0 (ded5c06cf 2025-12-08)
  • rust-analyzer 0.3.2786

I tried to stop rust-analyzer server right as the issue occurs and got this output after a wall of the same errors:

2026-02-10T09:19:46.623892536+07:00  WARN Propagating panic for cycle head that panicked in an earlier execution in that revision
2026-02-10T09:19:46.623978087+07:00  WARN Propagating panic for cycle head that panicked in an earlier execution in that revision
2026-02-10T09:19:46.624055107+07:00  WARN Propagating panic for cycle head that panicked in an earlier execution in that revision
2026-02-10T09:19:46.624162352+07:00  WARN Propagating panic for cycle head that panicked in an earlier execution in that revision
2026-02-10T09:19:46.624260862+07:00  WARN Propagating panic for cycle head that panicked in an earlier execution in that revision

thread 'Worker2' (17691) panicked at crates/rust-analyzer/src/task_pool.rs:28:41:
called `Result::unwrap()` on an `Err` value: "SendError(..)"
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: core::ops::function::FnOnce::call_once{{vtable.shim}}
   4: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[Error - 09:19:47] Server process exited with code 0.

StarMage27 avatar Feb 10 '26 02:02 StarMage27

I have the same problem too. The same problem occurred simultaneously on windows wsl and mac

  • VSCode 1.109.0 (Universal)
  • macOS Sonoma 14.8
  • rustc 1.93.0 (254b59607 2026-01-19)
  • rust-analyzer 0.3.2786

ssppest avatar Feb 10 '26 03:02 ssppest

Same problem here.

  • VSCode 1.108 and then also on 1.109
  • Linux 6.17.13+deb14-amd64 Debian forky/sid
  • rust-lang.rust-analyzer Version 0.3.2786

I followed the advice above, switched back to rust-analyzer 0.3.2777 and the issue has gone away.

martsbradley avatar Feb 10 '26 08:02 martsbradley

Switching back to rust-analyzer 0.3.2777 solved the issue for me.

This solved it for me as well. For anyone who encounters this:

  1. Click on the "rust-analyzer" extension
  2. Click the down arrow to the right of "Uninstall" and click "Install Specific Version...". It takes like 10 seconds to load on my machine but then the options finally pop up. Choose "0.3.2777".
  3. Close VSCode - if you don't close it then it seems to keep panicking.
  4. Re-launch VSCode.

joshmcorreia avatar Feb 10 '26 08:02 joshmcorreia

Same

LOYINuts avatar Feb 10 '26 08:02 LOYINuts

I had the same issue, and resolved it the same way (including the "it takes minutes for the install specific version popup to show" problem). I'm commenting to say, in case it's relevant: oddly, the wgsl extension also started failing at the same time. It says:

Request textDocument/documentSymbol failed. Message: Request textDocument/documentSymbol failed with message: recursive use of an object detected which would lead to unsafe aliasing in rust Code: -32603

OneSadCookie avatar Feb 10 '26 08:02 OneSadCookie

Does anyone happen to have a public project where this can be reproduced?

ShoyuVanilla avatar Feb 10 '26 08:02 ShoyuVanilla

Does anyone happen to have a public project where this can be reproduced?

I had this issue while working through the rustlings examples. Having multiple examples open, somewhere in the move semantics section.

orzechow avatar Feb 10 '26 09:02 orzechow

Does anyone happen to have a public project where this can be reproduced?

I can produce this reliably with https://codeberg.org/tisba/arq-restore

Edit: Downgrading to 0.3.2777 also fixes the issue for me.

tisba avatar Feb 10 '26 09:02 tisba

Does anyone happen to have a public project where this can be reproduced?

I just cargo new a crate and when I was editing the source code, my PC's cooling fan kept howling and RA's inline hint got freezed. Hence I'm here. If you want to figure out what's happening, just cargo new...


I tried both the latest unstable 0.4 version and the latest stable 0.3 version, and finally had the issue resolved by following the advice above (downgrade to v0.3.2777).

cxw620 avatar Feb 10 '26 10:02 cxw620

Same issue with vim ALE.

Edit : There's no issue with stable, and downgrading nightly stopped the issue.

rustup component add rust-analyzer --toolchain nightly-2026-02-07
rustup default nightly-2026-02-07

ide-outils avatar Feb 10 '26 10:02 ide-outils