banister / pry-stack_explorer

MOVED TO https://github.com/pry/pry-stack_explorer
https://github.com/pry/pry-stack_explorer
Other
18 stars 1 forks source link

initial session doesn't work #1

Closed banister closed 12 years ago

banister commented 12 years ago

Below occurs due to the fact plugins are loaded after the first Pry.start, and so the monkey-patch to Pry.start can't take affect, and so the relevant data structures aren't available.

>ruby test.rb

From: test.rb @ line 7 in Object#c:

     2:
     3: def a; b; end
     4:
     5:    def b; c; end
     6:
 =>  7:    def c; binding.pry; end
     8:
     9:    a()
[1] pry(main)> up
NoMethodError: undefined method `binding_index' for nil:NilClass
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/pry-stack_explorer-0.1.0pre1/lib/pry-st
ack_explorer.rb:53:in `block (2 levels) in <module:PryStackExplorer>'
[2] pry(main)> down
NoMethodError: undefined method `binding_index' for nil:NilClass
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/pry-stack_explorer-0.1.0pre1/lib/pry-st
ack_explorer.rb:60:in `block (2 levels) in <module:PryStackExplorer>'