Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Ensure that rustc and other dependencies are installed before building a rust project #487

Closed
aqueenan opened this issue Aug 30, 2019 · 2 comments 路 Fixed by #1461
Closed
Labels
good first issue Good for newcomers
Milestone

Comments

@aqueenan
Copy link

馃悰 Bug Report

wrangler build produces an unhelpful error message when rustc isn't in the path.

Environment

  • operating system:
Microsoft Windows [Version 10.0.18362.295]
Command Prompt and Bash has the same problem though.
  • output of rustc -V:
'rustc' is not recognized as an internal or external command,
operable program or batch file.
  • output of node -v:
v8.11.3
  • output of wrangler -V:
 wrangler 1.1.1

Steps to reproduce

I installed wrangler using npm, and created a rust project, then called wrangler build.

What did you expect to see?

Either a successful build, or a helpful error message prompting me to use rustup to install rustc and the dependencies.

What did you see instead?

When I called wrangler build I got the error:

>wrangler build
猬囷笍 Installing wasm-pack...
 Compiling your project to WebAssembly...
Error: The system cannot find the file specified. (os error 2)
Error: failed to execute `"cmd" "/C" "...\\AppData\\Local\\.wrangler\\wasm-pack-7824e3bac6af138a\\wasm-pack.exe" "build" "--target" "no-modules"`: exited with exit code: 1

The underlying issue is that wasm-pack doesn't return a helpful error either, just an exit code.

@ashleymichal ashleymichal added the good first issue Good for newcomers label May 14, 2020
@ashleymichal
Copy link
Contributor

for someone looking to pick up an issue, this should be easy enough to check in the build module using which

@stale
Copy link

stale bot commented Jul 13, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants