parcel-plugin-wasm.rs icon indicating copy to clipboard operation
parcel-plugin-wasm.rs copied to clipboard

Paths with spaces are not cached correctly

Open mythmon opened this issue 4 years ago • 2 comments

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.

mythmon avatar Nov 30 '19 04:11 mythmon

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

catsigma avatar Dec 01 '19 18:12 catsigma

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

mythmon avatar Dec 02 '19 17:12 mythmon