Whitespaces in project path do not work
See original GitHub issueDescribe the bug When the directory path in which the project is located contains whitespaces, the compilation fails with one of the two following errors:
// Directory path: /Users/me/Static Page/SomeProject
error: Found argument 'Page/SomeProject/web-app/.rsw/crates/gaelic/pkg' which wasn't expected, or isn't valid in this context
// OR
// Directory path: /tmp/with space/vite-plugin-rsw
Error: crate directory is missing a `Cargo.toml` file; is `space/vite-plugin-rsw/examples/react/.rsw/crates/@rsw/hey/pkg` the wrong directory?
To Reproduce Steps to reproduce the behavior:
- Create a directory with a whitespace in its path in e.g.
/tmp/with space
- Clone this project into it
- Go to the react example and run
yarn && yarn dev
- See error
- Optionally, cancel the previous command and try
yarn rsw:build
which yields the same effect
Expected behavior
It passes the crate path as a quoted string so that rsw
, wasm-pack
or whatever tool is downstream actually finds the directory.
Screenshots
Desktop (please complete the following information):
- OS: macOS
- Version 1.22.11
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (10 by maintainers)
Top Results From Across the Web
Whitespaces in project path do not work · Issue #20 - GitHub
When the directory path in which the project is located contains whitespaces, the compilation fails with one of the two following errors:.
Read more >Loading files in a Java ist not working when path contains any ...
Just stop treating classpath resource URLs as file paths. Do the correct thing, and it will work fine. Return a URL, or an...
Read more >Error: Detected a whitespace character in project paths.
When compiling the AWS IoT EduKit Getting Started PlatformIO Configuration File I get this error message : Error: Detected a whitespace ...
Read more >Error: The Working Directory location cannot have a space in ...
Error: The Working Directory location cannot have a space in the path name. Please specify a new location · 1. Click Start >...
Read more >Invoke VBScript: No paths with whitespaces possible - Help
Seems like 'invoke VBscipt' cannot work with paths that have whitespaces in it. It is also not possible to mask the whitespaces with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Seems to work flawlessly now, thank you very much 👍
Sorry, the path problem is really daunting, please try again
v1.9.3
.