Trouble with Ruby repl and ST3 #336

Open
tbrooke opened this Issue Feb 25, 2014 · 12 comments
@tbrooke

I am running Ruby 1.93 and Pry works from the command line. The deprecated IRB repl works fine

I am running ruby with .rbenv and I added :

{
  "default_extend_env": {
  "PATH": "{HOME}/.rbenv/shims:{PATH}"
  }
}

I also tried:

{
 "default_extend_env": {
 "PATH": "{HOME}/.rbenv/shims:{PATH}",
 "GEM_PATH": "{HOME}/.rbenv/shims"}
}

When I try to start the repl I get this error message and the repl closes:

/Users/tmb/Library/Application Support/Sublime Text     3/Packages/SublimeREPL/config/Ruby/pry_repl.rb:37:in `<main>': undefined method `build_completion_proc' for Pry::InputCompleter:Module (NoMethodError)

tbrooke

@hardywu

same here. But I got

/Packages/SublimeREPL/config/Ruby/pry_repl.rb:37:in `<main>': uninitialized constant Pry::InputCompleter (NameError)
@hardywu

@tbrooke I solved this by downgrade the pry to 0.9.12.6

@gretel

cant downgrade..

@dnlR

@hardywu downgrade to pry 0.9.12.6 and pry-byebug 1.3.2 worked for me! thanks.

@nemofang

@dnlR It worked by downgrading pry to 0.9.12 and pry-bybug 1.3.2.

Also after some investigation on the pry source code, this issue is caused of the rewrite of Pry::InputCompleter from Module to Class. I tried to modify the rails rpel config file but not get it worked. For now, best choice is lock the pry to 0.9.12. Hope this helpful to somebody.

@smiler

I've made a fix for this issue at #372. It works (for me) under Pry 0.10.0.

@earnestaddae

Yes, downgrading to pry 0.9.12 works perfectly. Now I can run REPL in ST3 via the SublimeREPL plugin.

@Z-Clive

@smiler Great fix. Works for me too! Thanks.

@Goldiorl

Works like charm!

@MattDMo

Using ST3 Build 3095 on OS X 10.10.5 and a newly-installed Ruby 2.2.4 (built from source). pry 0.10.0 still gave me the error, but 0.9.12 works fine. After updating pry_repl.rb as per #372, 0.10.3 now seems to work (at least, the REPL starts up fine). I haven't put it through its paces yet, though.

@D3MZ

works if you're using RVM: $ gem uninstall pry; gem i pry --version 0.9.12
But not a great solution.

@MattDMo

@D3MZ did you try updating Packages/SublimeREPL/config/Ruby/pry_repl.rb as per #372?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment