Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails if file/directory paths contains whitespaces #32

Open
Steve-0628 opened this issue Dec 21, 2021 · 1 comment
Open

Build fails if file/directory paths contains whitespaces #32

Steve-0628 opened this issue Dec 21, 2021 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Steve-0628
Copy link

Describe the bug
rush build doesn't work on macos

To Reproduce
Steps to reproduce the behavior:

  1. Make a project
  2. Run rush build to build it
  3. Get an error

Expected behavior
It should be built, as nothing is changed.

Screenshots
(Sorry for the japanese screenshot)

javac: Support/.../classes is an invalid flag. 
Usage: javac <options> <source files>
Use -help to view all options

image

Desktop (please complete the following information):

  • OS: macOS Big Sur 11.4 (20F71)
  • Rush Version v1.2.4

Additional context
It seems like it is using "Application Support" folder which contains space in it, so javac is complaining about it.

@shreyashsaitwal
Copy link
Owner

Thanks for reporting this. Yes, you're correct, javac is complaining because of the whitespace in the directory path. Here's a workaround until I ship a new release fixing this:

  1. Copy/Move everything inside the Application Support/rush directory to a place whose path has no whitespace. For e.g., /home/rush.
  2. Then, export the RUSH_DATA_DIR environment variable and set its value as the path of the previously moved directory.
  3. Build your extension with rush build.

@shreyashsaitwal shreyashsaitwal changed the title Build fails on macos Build fails if file/directory paths contains whitespaces Dec 21, 2021
@shreyashsaitwal shreyashsaitwal added bug Something isn't working good first issue Good for newcomers labels Dec 21, 2021
@shreyashsaitwal shreyashsaitwal self-assigned this May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants