#1218: Mechanize fails under MacRuby, runs under 1.9.2 (similar to ticket #1182) ------------------------------+--------------------------------------------- Reporter: lonny6@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- "undefined method 'html_parser' for nil:NilClass" Please see the attached text. It shows the mechanize gem working under Irb in Ruby 1.9.2, and the same failing under MacIrb from MacRuby 0.10. The gems in the 2 environments are identical. I don't think the problem is what dekiefer (#1182) thought it is. In the uploaded text you can clearly see that Mechanize.new() is not working properly under MacRuby. An instance does appear to get created, but it is not properly initialized. In contrast, under 1.9.2, you can see that the mechanize object is fully populated with attributes, including "@html_parser". This also happens in the situation mentioned in ticket #1182, but I don't think anybody noticed. I doubt it has anything at all to do with prettyprint. Regardless: I have no idea why the mechanize object is not getting properly initialized in MacRuby. This is a blocking issue for me. I have a project that must go forward and this is stopping me. Any advice on how to patch this problem would be appreciated, as it is urgent. I should also mention that the same error occurs under XCode, but that should not be a big surprise because it's using the same MacRuby. -- Ticket URL: <http://www.macruby.org/trac/ticket/1218> MacRuby <http://macruby.org/>