[MacRuby-devel] [MacRuby] #343: 'IRB.conf[:MAIN_CONTEXT].to_s‘ crashes

MacRuby ruby-noreply at macosforge.org
Mon Sep 21 14:46:40 PDT 2009


#343: 'IRB.conf[:MAIN_CONTEXT].to_s‘ crashes
------------------------+---------------------------------------------------
 Reporter:  dev@…       |       Owner:  lsansonetti@…        
     Type:  defect      |      Status:  new                  
 Priority:  major       |   Milestone:  MacRuby 0.5          
Component:  MacRuby     |    Keywords:                       
------------------------+---------------------------------------------------

Comment(by lsansonetti@…):

 The problem is in lib/irb.rb, in the method that defines #inspect on
 @CONF.

 Changing

 {{{
     for k, v in sort{|a1, a2| a1[0].id2name <=> a2[0].id2name}
 }}}

 to

 {{{
     sort{|a1, a2| a1[0].id2name <=> a2[0].id2name}.each do |k, v|
 }}}

 fixes the problem. Surely a problem in the parser, where we handle
 NODE_FOR.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/343#comment:2>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list