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

cargo wasix run fails #44

Open
Luxvao opened this issue Sep 8, 2023 · 6 comments
Open

cargo wasix run fails #44

Luxvao opened this issue Sep 8, 2023 · 6 comments

Comments

@Luxvao
Copy link

Luxvao commented Sep 8, 2023

Cargo wasix run fails with this error:

error: no such command: `+wasix`

        Cargo does not handle `+toolchain` directives.
        Did you mean to invoke `cargo` through `rustup` instead?
@Luxvao
Copy link
Author

Luxvao commented Sep 8, 2023

OS: Windows
Rust version: 1.72.0

@dierbei
Copy link
Contributor

dierbei commented Sep 12, 2023

@Luxvao How do I need to go about reproducing this error?

@Luxvao
Copy link
Author

Luxvao commented Sep 12, 2023

@dierbei Make a new rust projects and then just run cargo wasix run.

@theduke
Copy link
Collaborator

theduke commented Sep 12, 2023

I've run into this before.

It looks like the first rustc in your path is not the rustup provided wrapper, but a plain rustc.

How did you install rustup?
Can you share your PATH?

@Luxvao
Copy link
Author

Luxvao commented Sep 13, 2023

I installed rustup through a installer from rustup.rs. When I run which rustup I get C:\Users\Bor\.cargo\rustc (I'm on windows)

@dierbei
Copy link
Contributor

dierbei commented Sep 15, 2023

@Luxvao Is it possible that this is due to the OS, I can run it fine on ubuntu 22.04.

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