[MacRuby] #148: Trying to load the JSON library crashes
#148: Trying to load the JSON library crashes ---------------------------------------+------------------------------------ Reporter: wootest+macruby@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ Steps to reproduce: 1. In any .rb file in any MacRuby project, try to load the Ruby standard JSON library with "require 'json'". Notes:[[BR]] This happens in both 0.3 and the testing branch as of r671. Results: {{{ 2008-10-26 21:39:57.735 testmacruby[30789:10b] *** +[JSON module_function]: unrecognized selector sent to class 0x93effb0 /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/json/common.rb:106:in `module_function': NSInvalidArgumentException: *** +[JSON module_function]: unrecognized selector sent to class 0x93effb0 (RuntimeError) from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/json/common.rb:106:in `<module:JSON>' from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/json/common.rb:3:in `<top (required)>' from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/json.rb:1:in `require' from /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/json.rb:1:in `<top (required)>' from /Users/jesper/Desktop/testmacruby/build/Debug/testmacruby.app/Contents/Resources/rb_main.rb:13:in `require' from /Users/jesper/Desktop/testmacruby/build/Debug/testmacruby.app/Contents/Resources/rb_main.rb:13:in `<main>' }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/148> MacRuby <http://macruby.org/>
#148: Trying to load the JSON library crashes ---------------------------------------+------------------------------------ Reporter: wootest+macruby@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ Comment(by dj2@…): require 'json' appears to work with the current SVN head. -- Ticket URL: <http://www.macruby.org/trac/ticket/148#comment:1> MacRuby <http://macruby.org/>
#148: Trying to load the JSON library crashes ---------------------------------------+------------------------------------ Reporter: wootest+macruby@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ---------------------------------------+------------------------------------ Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.5 Comment: It also works with 0.5 / trunk. Closing. -- Ticket URL: <http://www.macruby.org/trac/ticket/148#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby