-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
Terminal echoing permanently turned off #59
Comments
Hi @mahemoff, I can reproduce the issue following your steps but I'm not sure why it happens. Need to further study this... |
Thanks for looking at it @deivid-rodriguez |
FWIW, if I hit ctrl-c while byebug has stopped execution (for example, running rspec), when I get back to the terminal my input is not echoed: ie, Unicorn or Rails is not needed to reproduce this. ( |
Thanks for that info @mccalluc ! So I can reproduce this issue using:
But it works fine if I use
So maybe this is an |
No :(. RSpec doesn't do anything special with stdin/stdout or with the terminal. |
Thanks @myronmarston Maybe @banister have heard of this happening in In any case, I'll try to have a look at this when I get time. |
I was able to reduce it to:
Run, press Ctrl-C, and there you go unable to see what you input. Based on this code from |
I'm running into this while trying to debug Rails. minitest, not rspec, but everything else sounds similar. Would adding a EDIT: pry-byebug didn't help but byebug remote seems to be working. |
Just tried @x-yuri's script using readline 7.0 and I can't reproduce this anymore. Can someone confirm? |
I can't reproduce it even with
P.S. |
I'm running Rails 4.2.7.1 and byebug 9.0.6 and using iTerm2 as my terminal. So I'm here to confirm that as of 9.0.6 this is still an issue. |
iTerm2 3.0.15 Caused occasionally with binding.pry (though I can't say how exactly). |
I tried debugging this issue. I could find that problem lies with Readline.readline method. Here is a sample code I tried reproducing,
I hope this is helpful. |
A faster work-around is using |
For future searchers, a clarification to what @sirupsen means: When we get into that situation, we can send
Just to add to that, I just created an iTerm shortcut that I can use to reset it with one press of command+option+2 (Mac): |
Does this mean it is inevitable and cannot be fixed upstream?
Edit: I now see this PR. Any chance to get it merged? |
|
I missed this edit sorry, I never got it to work properly, that's why it never got merged. |
This bug in byebug literally is a major blocking bug that renders the tool unusable. We’d all love to see it fixed 🙏 |
@evolve2k Can you describe how to reproduce it? Last time I tried, I couldn't. |
This happens when a byebug session is active and a Unicorn request times out. It also seems to happen when a request comes in while another request is being debugged. Seen on iTerm 2 running tmux.
To replicate:
The text was updated successfully, but these errors were encountered: