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

[rush] Rush recycler task on Windows shows the PowerShell window when Windows Terminal is set as the default terminal application #3232

Open
sachinjoseph opened this issue Feb 13, 2022 · 1 comment

Comments

@sachinjoseph
Copy link
Member

The Rush recycler task on Windows uses PowerShell to purge folders in common/temp asynchronously in the background, but when Windows Terminal is set as the default terminal application, the PowerShell window is displayed.

Repro steps

  1. Set Windows Terminal as the default terminal application. See steps here.
  2. In a large Rush mono-repo, run rush install and then run rush purge. A PowerShell window that's executing the recycler task would be launched and would remain visible until the recycler task completes.

Expected result: The PowerShell window is not visible.

Actual result: The PowerShell window is visible.

Details

Windows Terminal does not respect the PowerShell argument -WindowStyle Hidden - this issue is tracked here.

Standard questions

Question Answer
@microsoft/rush globally installed version? 5.62.3
rushVersion from rush.json? 5.62.3
useWorkspaces from rush.json? yes
Operating system? <!-- Windows
Node.js version (node -v)? v16.13.1
@pwbriggs
Copy link
Contributor

I'm not familiar with the "rush recycler," but this happens to me when rush update completes. A blank WT window pops up, and it disappears after a few minutes.

It appears this tooltip from Windows Terminal shows the command that's being run, if it helps:

Screenshot

image

Do you know of any workaround while we wait for microsoft/terminal#12464?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

2 participants