Skip to content
This repository has been 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
merged 1 commit into from Mar 5, 2016
Merged

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

merged 1 commit into from Mar 5, 2016

Conversation

damieng
Copy link
Contributor

@damieng damieng commented Mar 4, 2016

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
Contributor

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

@joefitzgerald
Copy link
Contributor

🎉

@joefitzgerald
Copy link
Contributor

:shipit:

@lee-dohm
Copy link
Contributor

lee-dohm commented Mar 5, 2016

🚀

@joefitzgerald
Copy link
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
Copy link
Contributor

lee-dohm commented Mar 7, 2016

@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
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
Copy link
Contributor Author

damieng commented Mar 7, 2016

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.

None yet

4 participants