[MacRuby] #1285: Constants missing error when the constants are declared in the class definition
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- At "git commit 68ac3fcaf1041ef9b25fb3bc940a47f41505b7e5" When one class is defined in an object-C type and another a ruby class in which constants are declared in the inner class definition, build process is OK but constants missing error is shown in runtime at Xcode 4. When the constants are defined in the outer ruby class definition, all processes are well done. -- Ticket URL: <http://www.macruby.org/trac/ticket/1285> MacRuby <http://macruby.org/>
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by kouji@…): Thanks to report. I commited 68ac3fcaf1041ef9b25fb3bc940a47f41505b7e5. Could you create reduction code? -- Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:1> MacRuby <http://macruby.org/>
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): Yeah a reduction would be very welcome here, or at least some copy-pasted code that we can use to re-create a proper reduction test. -- Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:2> MacRuby <http://macruby.org/>
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by tglee@…): An related Xcode project file was attached, which build directory was deleted. p.s. : Before the mentioned commit, there was no runtime error. -- Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:3> MacRuby <http://macruby.org/>
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): Thanks a lot! Here is a reduction: {{{ $ ./miniruby -e "framework 'AppKit'; class Foo<NSView; FOO=42; def foo;FOO;end; end; p Foo.new.performSelector(:foo)" -e:1:in `<main>': uninitialized constant FOO (NameError) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:4> MacRuby <http://macruby.org/>
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by mrada@…): I am also now experiencing this issue when I try to run the HotCocoa graphics demo. :( -- Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:5> MacRuby <http://macruby.org/>
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: 0.11-blocker ----------------------------+----------------------------------------------- Changes (by lsansonetti@…): * keywords: => 0.11-blocker Comment: Adding 0.11-blocker keyword. -- Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:6> MacRuby <http://macruby.org/>
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: 0.11-blocker ----------------------------+----------------------------------------------- Comment(by kouji@…): Done as https://github.com/MacRuby/MacRuby/commit/7b14592ab1b9b2d2b05f7393251713682d.... -- Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:7> MacRuby <http://macruby.org/>
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: 0.11-blocker ----------------------------+----------------------------------------------- Comment(by tglee@…): Replying to [comment:7 kouji@…]:
Done as https://github.com/MacRuby/MacRuby/commit/7b14592ab1b9b2d2b05f7393251713682d....
Thanks for your great commits. I have checked your commit so that I am sure the issue is fixed. -- Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:8> MacRuby <http://macruby.org/>
#1285: Constants missing error when the constants are declared in the class definition ----------------------------+----------------------------------------------- Reporter: tglee@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: 0.11-blocker | ----------------------------+----------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.11 -- Ticket URL: <http://www.macruby.org/trac/ticket/1285#comment:9> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby