[MacRuby-devel] [MacRuby] #532: The backtrace does not contain line numbers for code in blocks

MacRuby ruby-noreply at macosforge.org
Wed Dec 30 22:05:19 PST 2009


#532: The backtrace does not contain line numbers for code in blocks
----------------------------------------+-----------------------------------
 Reporter:  vincent.isambart@…          |       Owner:  lsansonetti@…        
     Type:  defect                      |      Status:  new                  
 Priority:  blocker                     |   Milestone:  MacRuby 0.5          
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------
 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.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/532>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list