-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
I am sure this is a minor bug: It seems as if jruby get's the currently executed line wrong. Take this example file:
puts "hello"
require 'pry'
binding.pry
Now with the pry gem installed in both jruby and mri:
$ ruby --version
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) 64-Bit Server VM 1.7.0_10-ea-b14 [darwin-x86_64]
$ ruby hello.rb
hello
From: /Users/robin/hello.rb @ line 1 :
=> 1: puts "hello"
2: require 'pry'
3: binding.pry
[1] pry(main)> exit
~
$ rbenv use 1.9.3
~
$ ruby --version
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.2.1]
~
$ ruby hello.rb
hello
From: /Users/robin/hello.rb @ line 3 :
1: puts "hello"
2: require 'pry'
=> 3: binding.pry
[1] pry(main)>
You see how in jruby pry thinks it's still in the first line, though it must be in the third line or the repl wouldn't have kicked in?
Reactions are currently unavailable