Skip to content
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

Rerun + Pry = ☠ #88

Closed
TrevorBramble opened this issue Nov 4, 2015 · 1 comment
Closed

Rerun + Pry = ☠ #88

TrevorBramble opened this issue Nov 4, 2015 · 1 comment

Comments

@TrevorBramble
Copy link

Hi, I had occasion to use Pry last night in a project I was relying on Rerun to serve and found it makes Pry almost impossible to use.

Rerun appears to be monitoring all keyboard input, including at the Pry prompt, so it will react to certain characters (t, x, etc.) and ignore backspace, arrows, and such.

Should I just not expect them to work together?

I recorded a short demo. Here are its files:

# Gemfile
source "https://rubygems.org"

gem 'rack',  '1.6.4'
gem 'rerun', '0.11.0'
gem 'pry',   '0.10.3'
# config.ru
require 'bundler'
Bundler.require

run -> (env) {
  binding.pry
  [200, {'Content-Type' => 'text/plain'}, ['']]
}
$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]

Rerun invoked with:

$ rerun -- rackup
@pjscopeland
Copy link

If you want to use the keyboard within the script, use the --background (or -b) flag on rerun. This doesn't put rerun into the background, but allows it to be - or allows you to use the keyboard for other things.

$ rerun -b -- rackup

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

2 participants