-
-
Notifications
You must be signed in to change notification settings - Fork 619
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
Ink 4.4.0 doesn't wait for user input from stdin
on second mount
#625
Comments
Thanks for the exemplary bug report, Sunil! I traced the issue down to https://github.com/vadimdemedes/ink/pull/616/files#diff-86963609bec6fda3d34233676d5ae33f6aa4b9bbe2758a10cd4863b704b37093R178, which gets called during I verified this by adding a @matteodepalo Do we have to |
stdin
on second mount
@matteodepalo Just saw your PR (#622), thanks for the fix! Could you elaborate why we need to |
@threepointone Just published a 4.4.1 with @matteodepalo's fix while we're figuring this stuff out. |
Amazing thank you! I’ll try this later when I’m at my laptop. Thanks for the quick turnaround! |
4.4.1 appears to have fixed my specific issue, thank you! |
Looks like it broke ink-testing-library tests for components that use useInput, I put up a PR with a fix vadimdemedes/ink-testing-library#23 |
Basically, without Before we had Thank you so much for merging! |
I think #616 has actually been a breaking change and should've been released in a major version bump. It looks like it broke user-land code in several places, which shouldn't happen in a minor version bump (this issue, vadimdemedes/ink-testing-library#23, #627). The best course of action seems to be to release a patch release with reverted What do you think? |
To me that change isn't breaking code that uses the If you don't think that's enough then yes I agree that we should revert the change in a patch and ship the |
Yeah I understand this. It mostly depends on what you consider to be public and private APIs. |
Also, according to the docs the |
Should I send a PR to ink-testing-lbrary that brings back |
It broke our tests when we tried to upgrade (we use the testing library for our low level components). |
Any updates on this - anytime I try to use an Ink component that requires user input the app immediately closes |
Hiya! Looks like this commit #616 broke something with input handling in 4.4.0. I managed to make a reproduction here https://github.com/threepointone/ink-repro. By running it, you'll see that hitting enter once will log the next message, but quit immediately after (with exit code 0).
With 4.3.1, it'll wait for 3 presses, as expected.
The text was updated successfully, but these errors were encountered: