-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Closes cmd/powershell when opening url #236
Comments
Is this a new issue in 8.0.3? If not, can you test some older versions? |
Just tested it, and was on my way to update the issue. :D
|
// @kykint |
open@8.0.3 had an issue on windows causing cmd/powershell to close. Tracked here; sindresorhus/open#236
According to your code - you don't use "wait: true" option. Without this option powershell shouldn't keep running. |
I could understand it exiting out of the node-script sure. As a side-note, shouldn't this have been a major-version bump? Pretty drastic change in behaviour for patch-bump. |
Tracked here; sindresorhus/open#236
Done some more testing outside of my project to easier isolate and test.
EDIT: Version 8.0.2: Version 8.0.3: |
wait-flag proved ineffective, locking version to 8.0.2 Tracked here; sindresorhus/open#236
I understood the problem. cmd window is not killed - It's just hidden. Will try to fix it |
Maybe the best way is just add windows-only option, like "hiddenTerminal". Because there is another situation, when node.js application is started not from cmd. Then powershell creates one more window and it appears on top of all other applications and it is also not good. I can't find better solution yet. |
I don't know which situations you're referring to (electron-app? pkg-bundled app?). |
I tried to find a way, how to determine environment, but didn't find :( So, I've created a PR #238 with an addition option. |
Also encountered this issue on 8.0.4 with cmd disappearing when opening url. Downgrading to 8.0.2 has resolved it. |
- change from `execFile` to `exec`, as the former doesn't work on Windows for `npm` - fix the **open** version to 8.0.2, as the newer ones have an open [issue](sindresorhus/open#236) on Widnows - change the tree bullets, as the right/down triangles are not fixed-width in monospace font(s) on Windows, messing up alignment.
Same issue for me and downgrading to 8.0.2 fixes it (I was on 8.0.5). Using Ubuntu for Windows and opening a URL in default browser with no options |
I use |
Had a similar report in Angular CLI angular/angular-cli#20807 |
This reverts commit 53faf7f. Closes sindresorhus#236
Lib version: 8.0.3
Nodejs: 15.11.0
Window: Win 10 build 19042.804
Steps to reproduce;
Then:
node index.js
Expected behaviour;
Actual behaviour:
The text was updated successfully, but these errors were encountered: