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

e2e fails when the path has space #1652

Closed
viankakrisna opened this issue Feb 26, 2017 · 5 comments · Fixed by #1707
Closed

e2e fails when the path has space #1652

viankakrisna opened this issue Feb 26, 2017 · 5 comments · Fixed by #1707
Milestone

Comments

@viankakrisna
Copy link
Contributor

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Can you reproduce the problem with latest npm?

Yes

Description

e2e fails when pwd has space in its path. eg /Users/adeviankakrisnafadlil/Local Sites/create-react-app

What are you reporting?

bug

Expected behavior

It should run the e2e test

Actual behavior

It fails with this error:

+ cd /Users/adeviankakrisnafadlil/Local Sites/create-react-app/packages/create-react-app
tasks/e2e-simple.sh: line 115: cd: /Users/adeviankakrisnafadlil/Local: No such file or directory
++ set +x
e2e-simple.sh: ERROR! An error was encountered executing line 115.
Cleaning up.
tasks/e2e-simple.sh: line 24: cd: /Users/adeviankakrisnafadlil/Local: No such file or directory
Exiting with error.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected): 9.2.0
  2. node -v: v7.4.0
  3. npm -v: 4.0.5

Then, specify:

  1. Operating system: macOs Sierra
  2. Browser and version: n/a

Reproducible Demo

Just rename your current create-react-app repo with create react-app or rename the parent folder to have space in it

@Timer
Copy link
Contributor

Timer commented Feb 26, 2017

Would you like to submit a pull request fixing this? 😄

@Timer Timer added this to the 0.9.3 milestone Feb 26, 2017
@viankakrisna
Copy link
Contributor Author

Haven't found the fix yet T_T
Will dig more tomorrow, in the meantime maybe someone with power in shell scripting could help? 😄

@Timer
Copy link
Contributor

Timer commented Feb 26, 2017

I believe we just need to wrap usages of cd (and related commands) with ".

e.g. cd $root_path/packages/react-scripts -> cd "$root_path/packages/react-scripts"

@viankakrisna
Copy link
Contributor Author

ok then, i thought just wrapping PWD with it would be sufficient, will do it tomorrow, it's quite a lot and haven't got a good sleep today 😄

@gaearon gaearon modified the milestones: 0.9.4, 0.9.3 Feb 28, 2017
@Timer
Copy link
Contributor

Timer commented Mar 2, 2017

@viankakrisna will you take a look at this soon? 😄

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants