question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Whitespaces in project path do not work

See original GitHub issue

Describe 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:

  1. Create a directory with a whitespace in its path in e.g. /tmp/with space
  2. Clone this project into it
  3. Go to the react example and run yarn && yarn dev
  4. See error
  5. 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 image

Desktop (please complete the following information):

  • OS: macOS
  • Version 1.22.11

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
StireArLankarcommented, Sep 1, 2021

Sorry, the path problem is really daunting, please try again v1.9.3.

Seems to work flawlessly now, thank you very much 👍

0reactions
lencxcommented, Sep 1, 2021

Sorry, the path problem is really daunting, please try again v1.9.3.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found