Projects

Ticket #532 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

The backtrace does not contain line numbers for code in blocks

Reported by: vincent.isambart@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.6
Component: MacRuby Keywords:
Cc:

Description

Sample code: (lines.rb)

begin
  1.times do
    raise ''
  end
rescue => e
  puts e.backtrace
end

MacRuby:

core:in `raise:'
core:in `times'
lines.rb:in `<main>'

Ruby 1.9:

lines.rb:3:in `block in <main>'
lines.rb:2:in `times'
lines.rb:2:in `<main>'

In the MacRuby backtrace, there is no line number (or even file name) for the code in the block.

Change History

Changed 2 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacRuby 0.5 to MacRuby 0.6

This has been fixed in trunk (I do not remember the exact revision though). Our backtraces are not yet 100% identical to MRI but at least blocks are there.

Note: See TracTickets for help on using tickets.