-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
doc: readline on "Git Bash" - winpty
required
#14100
Comments
FWIW, I can not reproduce the issue on Windows with v4, v6, v8 or v9. |
This only happens in Git Bash. |
cc @nodejs/platform-windows, @addaleax, @Fishrock123 |
I can repoduce this. A similar and probably related problem occurs when executing |
Someone told me Node.js supported building only with |
This looks like a duplicate of #5620 . Please always use
|
So I'd suggest we document this, but also disclaim official support (Experimental / YMMV) for: Git Bash / MSYS / MinGW / Cygwin / WSL |
readline.close()
- winpty
required
readline.close()
- winpty
requiredreadline.close()
- winpty
required
readline.close()
- winpty
requiredwinpty
required
Your test case is effectively: process.stdin.resume();
process.stdin.pause(); When running in Git Bash, GetFileType on stdin returns FILE_TYPE_PIPE rather than FILE_TYPE_CHAR. Consequently, Node.js doesn't consider it a TTY and sets its Once you're resumed a stream, it will read until it has read I say we close this since Git Bash is not supported. We can create a separate issue for documentation. |
I kinda already turned this to a documentation issue 😊, I say keep this open... |
@refack @starkwang I could document that. Can you please point me as to where that would need to be added? |
The only place that mentions platform support seems to be |
@yamalight the place we document our platform support is here: https://github.com/nodejs/node/blob/master/BUILDING.md#supported-platforms-1 Not sure what @refack had in mind, but I'd assume something like adding a |
@gibfahn thanks, got it. Will make a PR soon 👍 |
PR created. Please let me know if you want any changes. |
explain that Git Bash and Cygwin require winpty to work correctly. Added info on Git Bash running winpty automatically when running node without .exe extension. PR-URL: nodejs/node#16104 Fixes: nodejs/node#14100 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
explain that Git Bash and Cygwin require winpty to work correctly. Added info on Git Bash running winpty automatically when running node without .exe extension. PR-URL: #16104 Fixes: #14100 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
explain that Git Bash and Cygwin require winpty to work correctly. Added info on Git Bash running winpty automatically when running node without .exe extension. PR-URL: #16104 Fixes: #14100 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
explain that Git Bash and Cygwin require winpty to work correctly. Added info on Git Bash running winpty automatically when running node without .exe extension. PR-URL: #16104 Fixes: #14100 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
explain that Git Bash and Cygwin require winpty to work correctly. Added info on Git Bash running winpty automatically when running node without .exe extension. PR-URL: #16104 Fixes: #14100 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
explain that Git Bash and Cygwin require winpty to work correctly. Added info on Git Bash running winpty automatically when running node without .exe extension. PR-URL: #16104 Fixes: #14100 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
On Windows7, the Node.js application don't terminate after
rl.close()
:It causes test/parallel/test-readline-interface.js TIMEOUT, which will not happen in v6.x.x
The text was updated successfully, but these errors were encountered: