[MacRuby] #1033: macirb crash when trying to tab-complete when it tries to call invalid methods on nil
#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/>
#1033: macirb crash when trying to tab-complete when it tries to call invalid methods on nil ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: eloy.de.enige@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Changes (by eloy.de.enige@…): * owner: lsansonetti@… => eloy.de.enige@… -- Ticket URL: <http://www.macruby.org/trac/ticket/1033#comment:1> MacRuby <http://macruby.org/>
#1033: macirb crash when trying to tab-complete when it tries to call invalid methods on nil ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: eloy.de.enige@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby 1.0 Comment: It looks like a bug we want to be fixed in 1.0. -- Ticket URL: <http://www.macruby.org/trac/ticket/1033#comment:2> MacRuby <http://macruby.org/>
#1033: macirb crash when trying to tab-complete when it tries to call invalid methods on nil ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: eloy.de.enige@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by eloy.de.enige@…): Yeah, this should definitely be fixed before 1.0. Just wondering, what do you mean by ‘In other cases, I get’? What other cases exactly? -- Ticket URL: <http://www.macruby.org/trac/ticket/1033#comment:3> MacRuby <http://macruby.org/>
#1033: macirb crash when trying to tab-complete when it tries to call invalid methods on nil ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: eloy.de.enige@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------+--------------------------------------- Changes (by eloy.de.enige@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 1.0 => MacRuby 0.11 Comment: https://github.com/MacRuby/MacRuby/commit/c59dc4930d2b2166ee1527bb4591459955... While this does not fix the actual completing, it does stop it from crashing, which is what this ticket is mainly about. I have added a TODO about that specific piece of code with regards to completion. -- Ticket URL: <http://www.macruby.org/trac/ticket/1033#comment:4> MacRuby <http://macruby.org/>
#1033: macirb crash when trying to tab-complete when it tries to call invalid methods on nil ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: eloy.de.enige@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------+--------------------------------------- Comment(by mrada@…): Replying to [comment:3 eloy.de.enige@…]:
Yeah, this should definitely be fixed before 1.0. Just wondering, what do you mean by ‘In other cases, I get’? What other cases exactly?
Hmm, why do I only sometimes get messages for issues that I logged? Hmm, the other case that was a pain for me was in work related code that I can't release, but I had meant to try and extract a reduction from it. In either case, not crashing is a huge help. -- Ticket URL: <http://www.macruby.org/trac/ticket/1033#comment:5> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby