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

error: the 'cargo' binary, normally provided by the 'cargo' component, is not applicable to the '1.78.0-x86_64-unknown-linux-gnu' toolchain #12763

Closed
zonglin-hub opened this issue May 5, 2024 · 2 comments

Comments

@zonglin-hub
Copy link

Description

error: the 'cargo' binary, normally provided by the 'cargo' component, is not applicable to the '1.78.0-x86_64-unknown-linux-gnu' toolchain

Version

❯ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/zonglin/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
1.78.0-x86_64-unknown-linux-gnu

active toolchain
----------------

1.78.0-x86_64-unknown-linux-gnu (overridden by '/home/zonglin/github/leet_code/rust-toolchain.toml')
(rustc does not exist)

Additional Labels

No response

@Alexendoo
Copy link
Member

I would guess this is rust-lang/rustup#988, where e.g. rust analyzer runs at the same time you run a cargo command after updating the toolchain file. If it's not that please open a new rustup issue

The workaround is to uninstall the toolchain and reinstall it, usually stopping rust analyzer or similar while you're doing that

@Alexendoo Alexendoo closed this as not planned Won't fix, can't repro, duplicate, stale May 5, 2024
@Weisonorz
Copy link

For my device uninstalling rustup completely and reinstalling it solves the problem

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

No branches or pull requests

3 participants