Skip to content

rust-analyzer does not call correct cargo binary #16754

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

Closed
Taowyoo opened this issue Mar 4, 2024 · 3 comments · Fixed by #16755
Closed

rust-analyzer does not call correct cargo binary #16754

Taowyoo opened this issue Mar 4, 2024 · 3 comments · Fixed by #16755
Assignees
Labels
C-bug Category: bug

Comments

@Taowyoo
Copy link

Taowyoo commented Mar 4, 2024

Problem

On VSCode, at latest stable release which just been released within 24 hours v0.3.1868

The extension or maybe rust-analyzer does not call cargo in path. It always calls $HOME/.cargo/bin/cargo

I have custom toolchain in different folder with cargo installed, I add that cargo to path with direnv so when calling cargo in command line it will call that cargo first instead of the default installed one under ``$HOME/.cargo`.

Expect behavior

I assume the rust-analyzer should call the cargo in folders at front of the PATH system variable.

Temporary solution

I solve the issue by rollback the VSCode extension to v0.3.1860

@Taowyoo Taowyoo added the C-bug Category: bug label Mar 4, 2024
@Taowyoo Taowyoo changed the title VSCode extension does not call correct cargo. rust-analyzer does not call correct cargo. Mar 4, 2024
@Taowyoo Taowyoo changed the title rust-analyzer does not call correct cargo. rust-analyzer does not call correct cargo binary Mar 4, 2024
@lnicola
Copy link
Member

lnicola commented Mar 5, 2024

#16665

@Veykril
Copy link
Member

Veykril commented Mar 5, 2024

Well that's a nice conflict of interests we have here now

@Taowyoo
Copy link
Author

Taowyoo commented Mar 6, 2024

Thank you for quick response.

@bors bors closed this as completed in b85d38f Mar 6, 2024
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

Successfully merging a pull request may close this issue.

3 participants