Skip to content

Conversation

@devversion
Copy link
Member

Currently building Angular Material with gulp inside of directories that include spaces, does not work because child_process.spawnSync does not properly treat the whole path as binary and just considers everything after the first space as command line argument.

We can fix these issues by ensuring that the binary is always located in the working directory. Also we would need to make sure that we wrap all child_process arguments with explict quotes because otherwise NodeJS would treat them as individual arguments (e.g. `path/to/my project/ -> ["path/to/my", "project"])

--

TL;DR: As this is just too much work for something we will eventually replace with Bazel, we are just printing an error message.

Closes #13871

Currently building Angular Material with gulp inside of directories that include spaces, does not work because `child_process.spawnSync` does not properly treat the whole path as binary and just considers everything after the first space as command line argument.

We can fix these issues by ensuring that the binary is always located in the working directory. Also we would need to make sure that we wrap all `child_process` arguments with explict quotes because otherwise NodeJS would treat them as individual arguments (e.g. `path/to/my project/ -> ["path/to/my", "project"])

--

**TL;DR**: As this is just too much work for something we will eventually replace with Bazel, we are just printing an error message.
@devversion devversion added pr: merge safe target: patch This PR is targeted for the next patch release labels Nov 13, 2018
@devversion devversion requested a review from jelbourn as a code owner November 13, 2018 19:04
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 13, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Nov 13, 2018
@andrewseguin andrewseguin merged commit cb57c6c into angular:master Nov 14, 2018
josephperrott pushed a commit that referenced this pull request Nov 19, 2018
…es (#14126)

Currently building Angular Material with gulp inside of directories that include spaces, does not work because `child_process.spawnSync` does not properly treat the whole path as binary and just considers everything after the first space as command line argument.

We can fix these issues by ensuring that the binary is always located in the working directory. Also we would need to make sure that we wrap all `child_process` arguments with explict quotes because otherwise NodeJS would treat them as individual arguments (e.g. `path/to/my project/ -> ["path/to/my", "project"])

--

**TL;DR**: As this is just too much work for something we will eventually replace with Bazel, we are just printing an error message.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gulp(schematics-ts): doesn't handle projects in directories with spaces in their names

4 participants