-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Input issue with Node 11? #778
Comments
Any chance you called inquirer 2 times? Maybe there's some issue with listeners cleanup on the readline? |
I've the same problem on a windows machine with node 11.9.0 too. |
I'm literally invoking the 5 line script so that's unlikely! I've actually narrowed down the issue to Node 11.8.0. The exact same script behaves correctly with 11.7.0 and fails with 11.8.0. Currently git bisecting the Node repo and rebuilding to try and narrow it down, which isn't exactly how I was intending to spend my work day but I can't have this internal tool I built start misbehaving just as we were starting to deploy it to everyone 😱 I suppose this means this issue isn't really for you but once I know the exact commit in Node that breaks this I might need your expert opinion on what they broke! |
I can confirm that it still persists in node 11.9 :( |
The underlying issue in libuv has been fixed and the relevant upgrade of the dependencies was just merged in Node: nodejs/node#26037 So the fix for this should be an upcoming in Node 11.9.1 soon, I guess! |
Thanks a ton for following up on this @Ezekiel-DA !! |
This is fixed with Node 11.10.0! |
Hi,
first, a big thank you for this awesome library! It's made my life considerably easier when building command line apps.
I did run into a very strange issue today though: after upgrading to the Node 11 line (I tested both 11.8.0 and 11.9.0), I am finding that selection input in a list is messed up.
Here's an absolutely minimal reproduction:
Install inquirer and run this super basic script with Node as usual.
This obviously results in this prompt:
I would expect the arrow keys to navigate this list in the obvious way; what ends up happening though is that inputs are repeated, i.e. one press of the down arrow moves to
b
and then immediately toc
.This occurs in any terminal (cmd.exe, Powershell, Git Bash/MinGW). As far as I can tell without a real Linux box on hand, this seems to be Windows specific (a quick run of the above script in the Docker images for Node 10 and Node 11 both worked correctly).
If I uninstall Node 11 and return to Node 10 LTS (10.15.1 currently), the problem disappears.
Any thoughts?
The text was updated successfully, but these errors were encountered: