I was trying to speed up a little HotCocoa app I just released ( http://isaac.kearse.co.nz/2010/02/07/safarirss/ ) and when I tried to compile HotCocoa I ran into a strange issue with one particular file: http://github.com/richkilmer/hotcocoa/blob/master/lib/hotcocoa/mappings.rb All the files in HotCocoa (including mappings) compiled into .rbo files with macrubyc -C, but when I tried to require HotCocoa it wouldn't work I unless deleted mappings.rbo and defaulted to mappings.rb This is the error from the Console.app: application.rb:8:in `start' application.rb:1:in `<main>' undefined method `application' for #<Application:0x2002469a0> The line numbers have changed but this is the method "application" referred to: http://github.com/isaac/SafariRSS/blob/master/lib/application.rb#L13 As soon as I deleted mappings.rbo it worked fine. Anyone have any ideas what might be going on here? Cheers, Isaac
Yeah, I'd say it looks like you've found a bug in the compiler. If you can reduce the set of code which produces this error any, that's always great, but even if not you should file a bug in Trac and attach the relevant sources which reproduce this problem. Thanks! - Jordan On Feb 6, 2010, at 9:04 PM, isaac kearse wrote:
The line numbers have changed but this is the method "application" referred to: http://github.com/isaac/SafariRSS/blob/master/lib/application.rb#L13
As soon as I deleted mappings.rbo it worked fine.
Anyone have any ideas what might be going on here?
participants (2)
-
isaac kearse
-
Jordan K. Hubbard