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

fix: Don't create console window when creating process #32340

Merged
merged 3 commits into from Jan 7, 2022

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 in the last 24 hours label Jan 5, 2022
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 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.

@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 in the last 24 hours label Jan 6, 2022
@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 <hop2deep@gmail.com>

* Remove extra line in description

Co-authored-by: Robo <hop2deep@gmail.com>
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.

None yet

4 participants