pry-doc icon indicating copy to clipboard operation
pry-doc copied to clipboard

$ Time#succ doesn't work

Open egwspiti opened this issue 10 years ago • 2 comments

[1] pry(main)> $ Time#succ
NameError: undefined local variable or method `cannot_locate_source_error' for #<Pry::Command::ShowSource:0x0000000244e3d0>
from /usr/local/lib/ruby/gems/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/show_source.rb:28:in `content_for'

Only pry(0.9.12.6) and pry-doc(0.6.0) installed. Happens on both MRI 1.9.3p385 and 2.1.1p76

egwspiti avatar Apr 08 '14 21:04 egwspiti

It looks like YARD, on which we depend, fails to parse it.

EDIT: fixed the link.

kyrylo avatar Apr 08 '14 22:04 kyrylo

The error could be handled better, though.

dgutov avatar Apr 08 '14 22:04 dgutov