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

Error if path has spaces #25

Closed
dgsmith2 opened this issue Apr 30, 2018 · 7 comments
Closed

Error if path has spaces #25

dgsmith2 opened this issue Apr 30, 2018 · 7 comments

Comments

@dgsmith2
Copy link

dgsmith2 commented Apr 30, 2018

If your project has a space in its path the call to execSync will fail because the unescaped space(s) causes the remainder of the command to be interpreted as command-line argument(s).

@mgechev
Copy link
Collaborator

mgechev commented Apr 30, 2018

@dgsmith2 this doesn't seem to solve:

rxjs-5-to-6-migrate -p path\ to\ your/tsconfig.json

@dgsmith2
Copy link
Author

dgsmith2 commented May 1, 2018

Also escaping the path to tsconfig. Usages such as the following should be working:

package.json

scripts: {
   "rxjs-migrate": "rxjs-5-to-6-migrate -p /my/path/with\\ spaces/tsconfig.app.json",
}

CLI:

$ ./node_modules/.bin/rxjs-5-to-6-migrate -p /my/path/with\ spaces/tsconfig.app.json

@JamesJansson
Copy link
Contributor

JamesJansson commented May 13, 2018

This issue needs to be reopened, because it really is a bug that needs to be resolved for Windows users. The file path is not just unescaped for tsconfig, but also the tslint and the rxjs-5-to-6migrate.json, and uses absolute paths.

If, for example, your user name in Windows is "First Last", your path will look like "C:\User\First Last..." for all of the above files, breaking the install.

@JamesJansson
Copy link
Contributor

I've made a pull request that should fix this issue.

@JamesJansson
Copy link
Contributor

I just looked, there's a week old PR from dgsmith2 with almost exactly the same issue. The failure to accept this PR will be stopping a lot of people from upgrading to Angular 6. It's a hot topic off the back off IO18, so this should be seen to sooner rather than later.

@somnathswami
Copy link

yes this issue is big barrier to migrate angular 5 to angular 6 :(

@mgechev
Copy link
Collaborator

mgechev commented May 15, 2018

Fixed and published as part of 0.1.4.

@mgechev mgechev closed this as completed May 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants