[MacRuby] #458: odd debug messages during NSPredicate.prediateWithFormat:argumentArray:
#458: odd debug messages during NSPredicate.prediateWithFormat:argumentArray: -------------------------------------+-------------------------------------- Reporter: jordan.breeding@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- {{{ 419 jordan@thetourist ~ > macirb irb(main):001:0> NSPredicate.predicateWithFormat("NOT (SELF in %@)", argumentArray: [[1,2,3,4]]) 2009-11-25 10:20:35.508 macruby[56390:903] *** -[NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x200254a40> '(null)') unlocked when not locked 2009-11-25 10:20:35.512 macruby[56390:903] *** Break on _NSLockError() to debug. => #<NSCompoundPredicate:0x200255980> irb(main):002:0> }}} Happens with a stored array as well: {{{ 420 jordan@thetourist ~ > macirb irb(main):001:0> sampleArray = [1,2,3,4] => [1, 2, 3, 4] irb(main):002:0> NSPredicate.predicateWithFormat("NOT (SELF in %@)", argumentArray: [sampleArray]) 2009-11-25 10:22:29.606 macruby[56408:903] *** -[NSRecursiveLock unlock]: lock (<NSRecursiveLock: 0x2000247e0> '(null)') unlocked when not locked 2009-11-25 10:22:29.610 macruby[56408:903] *** Break on _NSLockError() to debug. => #<NSCompoundPredicate:0x200256120> irb(main):003:0> }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/458> MacRuby <http://macruby.org/>
#458: odd debug messages during NSPredicate.prediateWithFormat:argumentArray: -------------------------------------+-------------------------------------- Reporter: jordan.breeding@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: invalid Keywords: | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => invalid Comment: This isn't a MacRuby bug, the log happens in Cocoa. You probably need to initialize something before using NSPredicate. -- Ticket URL: <http://www.macruby.org/trac/ticket/458#comment:1> MacRuby <http://macruby.org/>
#458: odd debug messages during NSPredicate.prediateWithFormat:argumentArray: -------------------------------------+-------------------------------------- Reporter: jordan.breeding@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: invalid Keywords: | -------------------------------------+-------------------------------------- Comment(by jordan.breeding@…): Can this one get reopened? I don't see the error in Objective-C and Cocoa. Only in MacRuby thus far, I haven't tried Nu or F-Script yet with this example. All of these work without the error though: http://gist.github.com/242969 http://gist.github.com/242971 http://gist.github.com/242976 -- Ticket URL: <http://www.macruby.org/trac/ticket/458#comment:2> MacRuby <http://macruby.org/>
#458: odd debug messages during NSPredicate.prediateWithFormat:argumentArray: -------------------------------------+-------------------------------------- Reporter: jordan.breeding@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: blocker | Milestone: Component: MacRuby | Resolution: Keywords: | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: closed => reopened * resolution: invalid => Comment: Sorry about that, it looks like a bug of MacRuby since the ObjC/GC version works. Re-opening. -- Ticket URL: <http://www.macruby.org/trac/ticket/458#comment:3> MacRuby <http://macruby.org/>
#458: odd debug messages during NSPredicate.prediateWithFormat:argumentArray: -------------------------------------+-------------------------------------- Reporter: jordan.breeding@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: blocker | Milestone: Component: MacRuby | Resolution: Keywords: | -------------------------------------+-------------------------------------- Comment(by lsansonetti@…): Workaround: add the following line before using NSPredicate: {{{ NSPredicate.initialize }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/458#comment:4> MacRuby <http://macruby.org/>
#458: odd debug messages during NSPredicate.prediateWithFormat:argumentArray: -------------------------------------+-------------------------------------- Reporter: jordan.breeding@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------------+-------------------------------------- Changes (by lsansonetti@…): * status: reopened => closed * resolution: => fixed * milestone: => MacRuby 0.6 Comment: Should be fixed in r3937. -- Ticket URL: <http://www.macruby.org/trac/ticket/458#comment:5> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby