-
Notifications
You must be signed in to change notification settings - Fork 87
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
Reline.readline does not work if STDOUT is a tty and STDIN is not a tty #537
Comments
Could this be the same error as:
? It's only triggered when we:
cc @bpoplauschi |
|
On OpenBSD/adJ 7.4 I don't see the problem that @forthrin reports by running: % echo Foo | xargs ruby -r readline -e "puts 'Bar'"
Bar But I see the same error |
#659 also adds |
I think we might be seeing the originally described bug "Reline.readline does not work if STDOUT is a tty and STDIN is not a tty" when working on a Rails app with hookup. Hookup automatically runs
I have been able to reproduce this with a new rails app like so:
And removing the following line from the Gemfile fixes it:
Which I think points to reline, as it is a dependency of the debug gem. Adding the following line to the Gemfile:
Seems to fix it, which points to #659 as being a good fix. However, I've only tested that with empty/no-op |
This seems to be fixed in https://github.com/ruby/reline/releases/tag/v0.5.7 - |
Description
In Mac, Reline crashes if stdout is a tty and stdin is not a tty. This behavior depends on environment. It works in CI.
test_with_newline in test_rendering.rb
passes.In the above example, it seems working in docker, but actually it's not.
Terminal Emulator
macOS Terminal.app
The text was updated successfully, but these errors were encountered: