[MacRuby] #1033: macirb crash when trying to tab-complete when it tries to call invalid methods on nil

MacRuby ruby-noreply at macosforge.org
Tue Dec 7 16:48:58 PST 2010


#1033: macirb crash when trying to tab-complete when it tries to call invalid
methods on nil
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:                       
------------------------------------+---------------------------------------
 Try to tab complete the following:
      Dir.entries( '.' ).first.re

 I get the following error:

 /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/bin/macirb:55:in
 `block': undefined method `[]' for nil:NilClass (NoMethodError)
         from
 /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/bin/macirb:9:in
 `block'
         from
 /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/bin/macirb:7:in
 `<main>'


 In other cases, I get:

 /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/bin/macirb:55:in
 `block': undefined method `instance_methods' for nil:NilClass
 (NoMethodError)
         from
 /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/bin/macirb:9:in
 `block'
         from
 /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/bin/macirb:7:in
 `<main>'

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



More information about the macruby-tickets mailing list