Skip to content

Conversation

@rzhao271
Copy link
Contributor

@rzhao271 rzhao271 commented Jan 5, 2022

Description of Change

Since the windowsHide parameters still default to false, we need to keep the patch that disables console windows from showing up. Otherwise, for execSync calls, or spawnSync calls with shell: true, console windows still show up for Windows users.

This issue has been occurring since Electron 16.

Downstream issue: microsoft/vscode#138792

CC @deepak1556

Checklist

Release Notes

Notes: Fix regression where console windows would open for execSync and some spawnSync calls for Windows users.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jan 5, 2022
@rzhao271 rzhao271 force-pushed the rzhao271/revert-console branch from bed7a42 to 72b7027 Compare January 5, 2022 01:07
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

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

This patch was removed to adopt the embedder flag provided in nodejs/node#39712

It looks like the spawn_sync path was missed in the upstream PR. This should be addressed there.

/cc @zcbenz

@rzhao271 rzhao271 force-pushed the rzhao271/revert-console branch 2 times, most recently from a61327d to a94acd3 Compare January 5, 2022 01:39
@rzhao271 rzhao271 force-pushed the rzhao271/revert-console branch from a94acd3 to 52a6b9e Compare January 5, 2022 01:46
@rzhao271 rzhao271 requested a review from deepak1556 January 5, 2022 01:46
@rzhao271 rzhao271 marked this pull request as ready for review January 5, 2022 01:46
@rzhao271 rzhao271 requested a review from a team as a code owner January 5, 2022 01:46
@rzhao271
Copy link
Contributor Author

rzhao271 commented Jan 6, 2022

The upstream node patch is being tracked at nodejs/node#41412 and seems nearly ready to merge.

@rzhao271 rzhao271 requested a review from deepak1556 January 6, 2022 15:06
@codebytere codebytere added semver/patch backwards-compatible bug fixes target/16-x-y labels Jan 6, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Jan 6, 2022
@rzhao271 rzhao271 requested a review from deepak1556 January 6, 2022 19:47
@deepak1556 deepak1556 requested a review from zcbenz January 6, 2022 21:46
@zcbenz zcbenz merged commit 88ae6c0 into electron:main Jan 7, 2022
@release-clerk
Copy link

release-clerk bot commented Jan 7, 2022

Release Notes Persisted

Fix regression where console windows would open for execSync and some spawnSync calls for Windows users.

@trop
Copy link
Contributor

trop bot commented Jan 7, 2022

I have automatically backported this PR to "17-x-y", please check out #32378

@trop
Copy link
Contributor

trop bot commented Jan 7, 2022

I have automatically backported this PR to "16-x-y", please check out #32379

t57ser pushed a commit to t57ser/electron that referenced this pull request Jan 25, 2022
* fix: Don't create console window when creating process

* Update patches/node/fix_don_t_create_console_window_when_creating_process.patch

Co-authored-by: Robo <[email protected]>

* Remove extra line in description

Co-authored-by: Robo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants