Closed aramrw closed 2 weeks ago
Does this happen with Cargo too (you said cargo build/check
are also impacted)? If yes, that's a Cargo issue, not a rust-analyzer one (r-a invokes Cargo).
My fault, It was actually because of this: https://github.com/dtolnay/thiserror/issues/381
I tried having someone else clone & try to build the program, it had the same problem for them (I am on Windows 11 & they are on linux). However they were able to get it not to hang by commenting out everything and just having
fn main() {}
, but that didn't work for me. I also built massive projects like zed, some big tauri applications, some other of my rust programs, and they fully built without any issues.Everything in the repo is the last thing I had which successfully built & ran before i did
cargo add colored
. After this the program has been having this hang problem, even though I removedcolored
, deletedtarget
,cargo clean && cargo build/run/check
, updated rustup, tried different ra's from vscode, zed, & neovim, restarted my pc, and tried in wsl.rust-analyzer version
: 0.4.2178-standalone (dd9cd2251 2024-11-08) [c:\Users\arami.vscode\extensions\rust-lang.rust-analyzer-0.4.2178-win32-x64\server\rust-analyzer.exe]this problem occurs with any rust-analyzer (ie. the ones that get downloaded by neovim's
Mason
&zed
), as well as manually downloading the latest stable release.rustc version
: 1.82.0 (f6e511eec 2024-10-15)relevant settings
: default settings for every editor.repository link
: https://github.com/aramrw/manga-panel-downloaderIf you run
cargo run
,cargo build
,cargo check
, or just letrust-analyzer
try to index the program, it will get stuck at 99% showing everything built but the program name.