-
Notifications
You must be signed in to change notification settings - Fork 55
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
no such subcommand: +<toolchain> #244
Comments
The toolchain is installed, though, and I'm able to run it directly via |
My guess would be that there is an issue with the PATH environment variable. I'd verify that |
I just tested on my machine and have the same problem.
|
|
Running |
Can you show which version of rustup you have and what your PATH looks like? I suspect it is rust-lang/rustup#3036, and it may be an issue with PATH. |
My path is:
and when running cargo run on my test program: fn main() {
println!("{}", std::env::var("PATH").unwrap());
let mut cmd = std::process::Command::new("cmd");
cmd.arg("/C");
cmd.arg("where");
cmd.arg("cargo");
cmd.status().unwrap();
} those paths gets prepended:
but only |
Yea, the issue is rust-lang/rustup#3036. I have posted a fix there for it. |
The fix for here would be to use |
Update on this: This can be fixed by setting the environment variable |
This should now be fixed by default with rustup 1.27.1 released today. |
Hey all,
Just trying out
cargo-bisect-rustc
today. When I try to run:(I was trying an actual build command but simplifying the failure to running
version
)It seems to have trouble running
cargo
with the newly added toolchain:The text was updated successfully, but these errors were encountered: