Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Ensure atom.cmd --wait correctly waits in Windows cmd & powershell - #11053

Merged
damieng merged 1 commit into
atom:masterfrom
damieng:master
Mar 5, 2016
Merged

damieng merged 1 commit into
atom:masterfrom
damieng:master

Conversation

@damieng

@damieng damieng commented Mar 4, 2016

Copy link
Copy Markdown
Contributor

Existing solution caused Command Prompt to exit and sleep command is not built in to Windows.

New solution works by spawning powershell child process that passes it's PID to atom and then waits indefinitely. When atom terminates that process the parent process continues.

Tested in Command Prompt and Powershell in Windows 7 32-bit and Windows 10 64-bit.

@kevinsawicki

Copy link
Copy Markdown
Contributor

Awesome, love seeing a simpler (and functionally better) solution here 👍 📈

@joefitzgerald

Copy link
Copy Markdown
Contributor

🎉

@joefitzgerald

Copy link
Copy Markdown
Contributor

:shipit:

@lee-dohm

lee-dohm commented Mar 5, 2016

Copy link
Copy Markdown
Contributor

🚀

@joefitzgerald

Copy link
Copy Markdown
Contributor

Can we please make sure this gets into the next beta? Will fix CI pipeline stuff, and I may need to make an atom/ci PR on the back of it.

damieng added a commit that referenced this pull request Mar 5, 2016
Ensure atom.cmd --wait correctly waits in Windows cmd & powershell
@damieng
damieng merged commit 4b38801 into atom:master Mar 5, 2016
@lee-dohm

lee-dohm commented Mar 7, 2016

Copy link
Copy Markdown
Contributor

@joefitzgerald It'll definitely be in v1.7.x when it hits beta. Or did you mean to ask for this to be pulled in to the next v1.6-beta?

@joefitzgerald

Copy link
Copy Markdown
Contributor

@lee-dohm, I'm asking it to be pulled into 1.6.x beta; beta is currently broken in this regard so will impact CI for people doing CI against windows stable, and people using atom on the command line if we don't fix it in beta.

@damieng

damieng commented Mar 7, 2016

Copy link
Copy Markdown
Contributor Author

I'm all for including this in the 1.6 beta. The caveat is while it works in Powershell and Command Line it's still broken in Cygwin.

as-cii pushed a commit that referenced this pull request Mar 29, 2016
Ensure atom.cmd --wait correctly waits in Windows cmd & powershell
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants