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

No supported installation of cargo.exe found #254

Open
quixoticaxis opened this issue Nov 3, 2016 · 13 comments
Open

No supported installation of cargo.exe found #254

quixoticaxis opened this issue Nov 3, 2016 · 13 comments

Comments

@quixoticaxis
Copy link

After installing latest Release build of Visual Rust I get: "No supported installation of cargo.exe found. A version from after 2016-10-06 is required." Sorry for the stupid question, but how can I install cargo on Windows? I'm new to Rust and Bing searches didn't help me much with it.

@Boddlnagg
Copy link
Contributor

Cargo comes with the default Rust installation. So you can either use one from here: https://www.rust-lang.org/en-US/downloads.html (a Nightly, because the others are too old), or you can try rustup (https://rustup.rs/). With rustup it's easier to install different toolchains (stable, nightly) side by side and update them with a single command.

@Boddlnagg
Copy link
Contributor

We should probably change the error message to say something like "No supported Rust toolchain installation found." In the long term I would like to include (or automatically download) rustup if no Rust installation is found.

@quixoticaxis
Copy link
Author

Thanks a lot. rustup.rs looks like a golden tool) I chose 'nightly' toolchain and extended path but the latest Visual Rust still does not work.
Also as far as I understand for now cargo is not integrated into Visual Rust? What do you think about an option to add different file types to Rust project, like manually adding cargo config?

@Boddlnagg
Copy link
Contributor

What do you mean, it still does not work? VisualRust should be able to find the Rust toolchain when it's installed via rustup.

Manually adding a cargo config is usually not needed, because you either have an existing project, or you create one using cargo new or you create one using the project template in VS. Each of those options should give you a Cargo.toml configuration file, so adding one manually should not be required. It might still be useful to add different file types (e.g. markdown for README.md), but it's not a priority.

@quixoticaxis
Copy link
Author

I guess I managed to mess things up somehow:

  1. after installing nightly via rustup I still get "cargo.exe..." error. Installation seems fine, because everything works fine from cmd;
  2. there was no cargo config in my rust_application1, created with Rust Application template.
    I tried it all on VS Enterprise.
    I guess I'll try a clean install (rustup -> get nightly -> install the latest build) on VS Community when I get home.

@quixoticaxis
Copy link
Author

@Boddlnagg finished the fresh install in the previously mentioned order on VS 2015 Community. Everything works like a charm now: Cargo.toml exists, project compiles.

@Boddlnagg
Copy link
Contributor

@quixoticaxis Okay, great! I'm leaving this issue open to improve the error message ... for Rust beginners it's not clear what cargo.exe is (see above).

@mkgallelli
Copy link

mkgallelli commented Nov 9, 2016

I'm having the same problem with 142. I've uninstalled and installed the entire tool-chain, w/o much luck. (Except Visual Studio) @quixoticaxis, did you have to reinstall visual studio?

C:\Users\micha\dev>rustup show
stable-x86_64-pc-windows-msvc (default)
rustc 1.12.1 (d4f39402a 2016-10-19)

C:\Users\micha\dev>where cargo
C:\Users\micha\.cargo\bin\cargo.exe

Microsoft Visual Studio Community 2015
Version 14.0.25431.01 Update 3

Error
1>C:\Users\micha\onedrive\documents\visual studio 2015\Projects\rust_application3\rust_application3\Cargo.toml : error : No supported installation of cargo.exe found. A version from after 2016-10-06 is required.

@Boddlnagg
Copy link
Contributor

Boddlnagg commented Nov 9, 2016

@Antwarpes That is actually a different problem: Your version (1.12.1 stable) does have a date after 2016-10-06, but it is only a bugfix release of 1.12.0 and does not contain the change that VisualRust needs. I didn't anticipate the existence of a bugfix release when I wrote that error message. You actually need to use a 1.14 version, which currently only exists as nightly (going beta tomorrow).

I will update the error message to reflect that (and just refer to the 1.14 version as a requirement, because I don't think that anyone is going to use a 1.14 nightly from before 2016-10-06).

@Boddlnagg
Copy link
Contributor

It looks like the version of Cargo that ships with 1.13.0 stable (released today) already supports --message-format 🎉

@quixoticaxis
Copy link
Author

I didn't have to re-install VS. Only deleted Rust, then installed nightly via rustup.

@mistrpopo
Copy link

mistrpopo commented Apr 1, 2017

Still happening for me.
Installed and updated rust via rustup :

C:\Users\mrpopo>rustc -V
rustc 1.16.0 (30cf806ef 2017-03-10)

C:\Users\mrpopo>cargo -V
cargo-0.17.0-nightly (f9e5481 2017-03-03)

Installed latest passing VisualRust version from AppVeyor : https://ci.appveyor.com/project/vosen/visualrust/build/145/artifacts

Error message :

error : No supported installation of cargo.exe found. A version from after 2016-10-06 is required.

@mistrpopo
Copy link

I uninstalled Rust ( rustup self uninstall) and reinstalled with the nightly toolchain as default. It now looks alright. So I assume the required change still did not land in stable.

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

No branches or pull requests

5 participants