[MacRuby] #305: boilerplate hotcocoa project crashes
#305: boilerplate hotcocoa project crashes --------------------------------+------------------------------------------- Reporter: crafterm@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: hotcocoa crash --------------------------------+------------------------------------------- Hi There, Hope all is going well. When creating a boilerplate hotcocoa project, running macrake builds the project and creates the resultant foo.app file, however this .app file crashes and fails to start. Taking the generated application.rb file into macirb and attempting to run it manually results in the following error: irb(main):043:0> Application.new.start NameError: uninitialized constant LayoutView from 0:in `const_missing:' from 0:in `const_missing:' from 0:in `init_with_options:' from 0:in `window:' from 0:in `handle_block:' from 0:in `application:' from 0:in `start' from 0:in `eval:' from 0:in `evaluate:' from 0:in `evaluate:' from 0:in `signal_status:' from 0:in `class_eval:' from 0:in `each_top_level_statement' from 0:in `eval_input' from 0:in `start:' Any thoughts how to remedy? Cheers, Marcus -- Ticket URL: <http://www.macruby.org/trac/ticket/305> MacRuby <http://macruby.org/>
#305: boilerplate hotcocoa project crashes --------------------------------+------------------------------------------- Reporter: crafterm@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: hotcocoa crash --------------------------------+------------------------------------------- Comment(by lsansonetti@…): I noticed this problem, it looks like HotCocoa is not yet working with experimental^Wtrunk yet! This looks like yet another constant lookup problem. Any help to reduce this problem into a small ruby expression would be welcome :-) -- Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:1> MacRuby <http://macruby.org/>
Hi,
When creating a boilerplate hotcocoa project, running macrake builds the project and creates the resultant foo.app file, however this .app file crashes and fails to start. (...) Any thoughts how to remedy? Work around: move the 'include HotCocoa' from the Application class to the toplevel
require 'hotcocoa' include HotCocoa class Application instead of require 'hotcocoa' class Application include HotCocoa
#305: boilerplate hotcocoa project crashes --------------------------------+------------------------------------------- Reporter: crafterm@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: hotcocoa crash --------------------------------+------------------------------------------- Comment(by crafterm@…): Further update. It appears that including HotCocoa into global namespace fixes the issue, must be some scoping related problem in HotCocoa when accessing the LayoutView class. Cheers, Marcus -- Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:2> MacRuby <http://macruby.org/>
#305: boilerplate hotcocoa project crashes --------------------------------+------------------------------------------- Reporter: crafterm@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: hotcocoa crash --------------------------------+------------------------------------------- Comment(by crafterm@…): Patch attached, searched for LayoutView that was not scoped within the HotCocoa module - with the patch applied the boilerplate code works as expected. Hope the patch is all ok, etc. -- Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:4> MacRuby <http://macruby.org/>
#305: boilerplate hotcocoa project crashes --------------------------------+------------------------------------------- Reporter: crafterm@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: hotcocoa crash --------------------------------+------------------------------------------- Comment(by dev@…): Thanks, patch works. But same thing with LayoutOptions, Hotcocoa:: must be added for running an new skeleton hotcocoa app view.rb, line 39: {{{ @layout = LayoutOptions.new(self, options) }}} to {{{ @layout = HotCocoa::LayoutOptions.new(self, options) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:5> MacRuby <http://macruby.org/>
#305: boilerplate hotcocoa project crashes --------------------------------+------------------------------------------- Reporter: crafterm@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: hotcocoa crash --------------------------------+------------------------------------------- Comment(by crafterm@…): Ok, good catch also - I've updated the patch to include that particular change also. Hope all good, etc. Cheers, M! -- Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:6> MacRuby <http://macruby.org/>
#305: boilerplate hotcocoa project crashes --------------------------------+------------------------------------------- Reporter: crafterm@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: hotcocoa crash --------------------------------+------------------------------------------- Comment(by isaackearse@…): This ticket has been resolved for me with changeset:2366 -- Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:7> MacRuby <http://macruby.org/>
#305: boilerplate hotcocoa project crashes --------------------------------+------------------------------------------- Reporter: crafterm@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: hotcocoa crash | --------------------------------+------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Comment: It looks to me that this problem is fixed in trunk. Closing this ticket... let me know if it should be re-opened. -- Ticket URL: <http://www.macruby.org/trac/ticket/305#comment:8> MacRuby <http://macruby.org/>
participants (2)
-
MacRuby
-
Vincent Isambart