I’m using Emacs’ ruby-mode together with irb as inferior ruby, but the
line numbers for exceptions end up completely wrong:
irb(main):1495:0> t = Ribbit::TargetFactory.new(1, :snmp, ‘ti100710a080’)
ArgumentError: mandatory argument “specifier_id” missing
initialize' from (irb):1472:innew’
initialize' from (irb):1495:innew’
The line numbers reported by irb are in this case about 1200 lines too
Actually, this is caused by two unrelated problems:
- Line numbers are not adjusted in irb before it evaluates a chunk of
Ruby code, causing the source references to be wrong.
- C-c C-e causes irb to print a bunch of prompts, one for each source
line) causing the line number counter to increment repidly.
I have spent the previous 30-40 minutes searching web and docs, but at
no avail. I would be very grateful if anyone could provide a solution
to these problems.
Thanks in advance!
I’ve seen things you people wouldn’t believe. Attack ships on fire off
the shores of the Nonestic Ocean. I watched magic blunderbusses flash
and glitter in the dark near Glindea’s Palace. All those moments will
be lost in time, like tears in rain. Time to die…