wasm-tool / parcel-plugin-wasm.rs

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

Paths with spaces are not cached correctly #28

Open mythmon opened 4 years ago

mythmon commented 4 years ago

This is similar to #15, but the incorrect path is different. I'm using WSL, so my code is at path /mnt/c/Users/My User/code/project/crate/src/lib.rs. Note the space in My User.

I get this error when running with all versions starting with 1.2.10:

❯ yarn start
yarn run v1.7.0
warning package.json: License should be a valid SPDX license expression
$ parcel index.html
Server running at http://localhost:1234 
✨  Built in 3.00s.
🚨  Error writing to cache: ENOENT: no such file or directory, stat '/mnt/c/Users/MyUser/code/project/crate/src/lib.rs'

Note that the space in My User was removed.

catsigma commented 4 years ago

Did you import the lib by using import xxx from 'path/to/Cargo.toml' or import xxx from 'path/to/lib.rs'?

mythmon commented 4 years ago

Oops, sorry. This is what I get for trying to manually edit the logs. I imported the lib with path/to/Cargo.toml.