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

[Rust] Can't build simple project #2184

Closed
linvain opened this issue Oct 23, 2018 · 3 comments · Fixed by #2651
Closed

[Rust] Can't build simple project #2184

linvain opened this issue Oct 23, 2018 · 3 comments · Fixed by #2651
Labels

Comments

@linvain
Copy link

linvain commented Oct 23, 2018

🐛 bug report

I can't build this simple project. Am I doing something wrong?

😯 Current Behavior

$ npm run build

> parcel-rust-test@1.0.0 build C:\Projects\test
> npm run clean && parcel build src/index.html


> parcel-rust-test@1.0.0 clean C:\Projects\test
> rm -rf dist

√  Built in 1.04s.

dist\fib.6e849f36.wasm    ‼  1.89 MB    798ms
dist\src.83762b81.js         3.19 KB    810ms
dist\src.83762b81.map          630 B      3ms
dist\index.html                 70 B      4ms
×  Error writing to cache: ENOENT: no such file or directory, stat 'C:\Projects\test\src\C'

💻 Code Sample

https://github.com/linvain/parcel-rust-test

🌍 Your Environment

Software Version(s)
Parcel 1.10.3
Node 10.11.0
npm/Yarn 6.4.1
Operating System Windows 10

Standalone rust projects work fine on my computer
I use Git Bash with "run as administrator"

@linvain
Copy link
Author

linvain commented Oct 28, 2018

Got the same error on another Windows 10 machine: Error writing to cache: ENOENT: no such file or directory, stat 'E:\GitHub\parcel-rust-test\src\E'

@popey456963
Copy link

Yes, I'm also seeing this issue on a simple project. Is there a workaround? I've tried forcing the cache directory to either the directory Rust is in, or specifically not, but neither sem to allow it to function.

@devongovett devongovett added WASM Web Assembly Rust labels Jan 6, 2019
@moritonal
Copy link

I've had some luck with the "no such file" bug when I used cargo new test_project --lib to create a sub-project directory and .toml file.

It now generates a new directory called target within that sub-project directory which didn't exist before. That might be helping?

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

Successfully merging a pull request may close this issue.

5 participants