Skip to content
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

rust-analyzer loading one core forever #17694

Closed
RocketRide9 opened this issue Jul 25, 2024 · 3 comments
Closed

rust-analyzer loading one core forever #17694

RocketRide9 opened this issue Jul 25, 2024 · 3 comments
Labels
C-bug Category: bug

Comments

@RocketRide9
Copy link

RocketRide9 commented Jul 25, 2024

rust-analyzer version: rust-analyzer 1.79.0 (129f3b9 2024-06-10)

rustc version: rustc 1.79.0 (129f3b996 2024-06-10)

editor or extension: Helix

relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)
These environment variables aren't set.

repository link (if public, optional): it's a gnome app template from Builder with updated dependencies and added lemmy_client dependency: https://github.com/RocketRide9/for_ra_bug_report

Description: When using Helix, rust-analyzer loads one core forever. I found similar issue: #10715 , but it isn't very similar: i can run cargo check in separate terminal tab and it returns result almost instantly. I tried closing everything related to rust and running rust-analyzer analysis-stats ., but it never finishes. While RA is spinning, cargo check works fine in separate tab.

@RocketRide9 RocketRide9 added the C-bug Category: bug label Jul 25, 2024
@alibektas
Copy link
Member

alibektas commented Jul 25, 2024

Problem seems to be the rust-analyzer.sh file you have. Commenting the config key rust-analyzer.server.path in your .vscode/settings.json seems to solve the issue.

Or maybe I don't have the same problem on my machine. Can you verify if the problem is related to the shell script?

@Veykril
Copy link
Member

Veykril commented Jul 25, 2024

Might also be #14522 or #8161

@RocketRide9
Copy link
Author

Problem seems to be the rust-analyzer.sh file you have. Commenting the config key rust-analyzer.server.path in your .vscode/settings.json seems to solve the issue.

Or maybe I don't have the same problem on my machine. Can you verify if the problem is related to the shell script?

i deleted .flatpak. it helped. many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants