wasm-tool / parcel-plugin-wasm.rs

wasm-bindgen support for Parcel bundler
MIT License
66 stars 16 forks source link

Parcel with Rust fails to write to cache if paths have spaces #15

Closed iamcodemaker closed 5 years ago

iamcodemaker commented 5 years ago

🐛 bug report

When building a rust project, if there are spaces in the path parcel fails with the following error where the path was /path/with spaces in it/. Note: this is not a fatal error, it just logs to the console. Everything else still seems to work.

Previous discussion here: parcel-bundler/parcel#2521

✨  Built in 1.72s.
🚨  Error writing to cache: ENOENT: no such file or directory, stat '/path/with\'

🔦 Context

To reproduce:

  1. get the rust parcel template
  2. place it in a path with spaces in it
  3. run npm run start or npm run build

🤔 Expected Behavior

Parcel should properly build a bundle.

😯 Current Behavior

Parcel complains about writing to the cache with the error above.

💁 Possible Solution

Properly handle paths with spaces (and special characters) in them.

🌍 Your Environment

Software Version(s)
Parcel 1.11.0
Node 8.14.0
npm 6.5.0
Operating System macOS 10.13.6
catsigma commented 5 years ago

Sorry for the late fix. Version 1.2.10 solve this issue.