Skip to content

Bug on rails console when process is suspended #557

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

Closed
rafaelfranca opened this issue Mar 28, 2018 · 2 comments
Closed

Bug on rails console when process is suspended #557

rafaelfranca opened this issue Mar 28, 2018 · 2 comments

Comments

@rafaelfranca
Copy link
Member

From @rderik on March 28, 2018 20:12

Steps to reproduce

Run rails c then suspend it by pressing [Ctrl+z]

Expected behaviour

The user shoudl be able to suspend the rails console and then the user should be able to use the shell without any interference.

Actual behaviour

The rails console doesn't seem to be suspended and it is "fighting" with the shell for the input and some input goes to the shell and some to the rails console so it breaks all the workflow.

you can see a asciinema here: https://asciinema.org/a/pDMvNsyNHek77Ulyx6Z95VTuH

If I can be of any help let me know.

System configuration

Rails version:
Rails 5.1.5
Ruby version:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin17]

Copied from original issue: rails/rails#32367

@TylerRick
Copy link

@rderik This looks like the same problem as #361.

Isn't that annoying?! It's been bugging me for years that that doesn't work properly.

But you're in luck, because the fix (#514) has already been merged! 🎆 🎉

It is not released as RubyGem yet, but you can use the version from git, which seems to be working for me:

group :development do                                                          
  gem 'spring', github: 'rails/spring'    
end

https://github.com/rails/spring/blob/master/CHANGELOG.md lists this under Next release:

Properly suspend and resume on ctrl-z TSTP and CONT (#361)

@SampsonCrowley
Copy link

SampsonCrowley commented Jun 21, 2019

OMG it's finally fixed in spring 2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants