-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Version 0.3.1992
rust-analyzer process spins out of control in macOS VSCode
#17378
Comments
Same happens on Windows and Linux (rustc 1.78.0 (9b00956e5 2024-04-29)) |
I was having a similar issue with Windows, VSCode, WSL Ubuntu. |
Same issue here |
Can anyone trigger it reliably? A public repository causing the issue or a bisection would be appreciated. |
Otherwise capturing backtraces of the running threads would help |
@lnicola I haven't had the chance to dive into the details yet, but can confirm that rust-lang/rustup is one of the repos that has broken PS: I use OS: macOS 14.5.0 |
By |
Downgrading saves my day... OS: Ubuntu 2404, bare metal. |
I have the same problem on Debian Linux. Downgrading to |
The problem might be in the infinite loop: rust-analyzer/crates/rust-analyzer/src/config.rs Lines 2562 to 2569 in 14a1f45
|
The issue might be in this function: it returns a map Also, the variable rust-analyzer/crates/load-cargo/src/lib.rs Lines 284 to 306 in 14a1f45
|
同样问题,搞了两小时,换了个旧版本修复了。。无语 |
@Veykril @lnicola Can you please pin this issue to increase its visibility first? Many thanks in advance! |
Thanks for reporting, I just ran into this issue on Ubuntu Linux. I'm quite new to Rust and assumed I must have been doing something wrong. |
For anyone using VSCode / VSCodium / etc., until this is fixed, having a working rust-analyzer can be achieved by:
|
@Veykril thanks for pushing a fix. will there be a hotfix release of this? |
There is a new nightly release published now |
same here. |
According to @Veykril, a new nightly release is out now including the fix. You can switch to the |
Yep, switching to the pre-release worked for me. |
A new stable release is now out ( |
Fix doesn't seem to work on my machine: Versions 0.3.1983 and earlier work correctly, versions 0.3.1992 and 0.3.1995 loop indefinitely. |
@hackguy25 might be better to file a new issue. A project link and/or thread backtraces would be appreciated. |
rust-analyzer version:
0.3.1992
rustc version: rustc 1.78.0 (9b00956e5 2024-04-29)
editor or extension: VSCode
relevant settings: Standard Rustup installation
repository link (if public, optional): n/a
code snippet to reproduce:
n/a
VSCode updated my extensions today and on the latest rust-analyzer version things are spinning out of control:
I've worked around it by downgrading the version on VSCode itself:
The text was updated successfully, but these errors were encountered: