-
Notifications
You must be signed in to change notification settings - Fork 85
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
When used inside Emacs with Reline, input is echoed #644
Comments
Sorry, wrong repo. |
@dgutov can you point the new one? I encounter these problems in Emacs and am also confused between irb, debug, reline, etc, etc, etc. Happy to follow your investigation. |
@freesteph See pry/pry#2303. Irb has its own way of disabling Reline, so see the above and the linked PR for a similar solution for Pry. Not sure about Perhaps Reline itself should have a "dumb" backend with automatic switchover, or a fix for this some other way, but I don't understand the code enough to suggest anything in particular. |
Update for those coming from search results:
|
Description
This issue is about using Pry as a Ruby REPL inside Emacs.
The effect looks very much like #616:
But there doesn't seem to be any interest in having this solved inside Reline (i.e. providing a "simple" io driver).
What are your expected behavior and actual behavior of your environment?
The expected behavior is that the input is not copied or otherwise reproduced in the output.
This problem come up more often now than Ruby 3.3 defaults to Reline.
Terminal Emulator
Comint inside Emacs.
IRB has a workaround: when launched with
--nosingleline --nomultiline
, it switches to a different I/O implementation, which it calls StdioInputMethod.Should Pry carry its own solution like that as well? The hackish patch below seems to do the trick. It can be a configuration option, a separate wrapper class, etc.
Downstream report: dgutov/robe#147 (comment)
The text was updated successfully, but these errors were encountered: