-
Notifications
You must be signed in to change notification settings - Fork 182
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
Skipping second prompt? #132
Comments
I'm having the same issue. First input gets output to the console, second is skipped and returns undefined. |
So many modules use prompt that it would be great to have a fix! |
I am using node v5.7.0 and still facing this problem and I am on windows8.1. |
Thanks for checking. I'll keep investigating. |
same happening in my case. GIT Bash and Windows 8.1 Command Prompt |
it's highly timing dependent it seems, entering random logging makes it irregular. for some reason, the read library: rl.on('line', onLine) patching the read library
will cover it up. Not a solution, just a hack - spent to many hours already on this. |
Broken on Node 6, Windows 10 as well (bash/no bash) |
Also happening to me, windows 10, node 5 I found a fix, but its ugly. in lib/prompt.js, the This just feels like a bad idea overwriting I'm also not sure if there are any "bad effects" of setting |
and the above "fix" fails the 3rd "interactive test", but perhaps I entered in the required prompt wrong, the wording of the test confused me. no matter what I entered it asked me again then on the second time failed the test. I assume this is why terminal is true. |
TY for the fix @simonmarklar |
@jckleinbourg I believe this is actually a bug in libuv that was fixed in a recent node release. See nodejs/node#5384 for the info The "fix" I posted above is pretty hacky and I wouldn't use it unless I had no other choice |
@simonmarklar I use node v4.4.7 LTS. In my case it is just for a personal tool, I'm conscious that it would not be suitable for a production version. |
I have a very simple script (shown below) but it is printing out the first input and then skipping the second prompt is this a known issue? and/or anyone know how I can fix this?
here is what happens when i try to enter each prompt
The text was updated successfully, but these errors were encountered: