[MacRuby] #298: macirb loses track of local variables
#298: macirb loses track of local variables ----------------------------------------+----------------------------------- Reporter: mharper@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- macirb loses track of local variables. After a clean test and install of the latest experimental branch on Snow Leopard (10A411), I fired up macirb for a quick test. macirb starts fine and gives me a prompt. But when I create a simple local variable and assign a string value to it, then try printing the variable, macirb throws an exception: mharper$ macirb irb: warn: can't alias exit from irb_exit. irb(main):001:0> a = "hello" => "hello" irb(main):002:0> puts a NameError: undefined local variable or method `a' for main:TopLevel from 0:in `eval:' from 0:in `evaluate:' from 0:in `evaluate:' from 0:in `signal_status:' from 0:in `each_top_level_statement' from 0:in `eval_input' from 0:in `start:' irb(main):003:0> exit macirb -v => irb 0.9.5(05/04/13) -- Ticket URL: <http://www.macruby.org/trac/ticket/298> MacRuby <http://macruby.org/>
#298: macirb loses track of local variables ----------------------------------------+----------------------------------- Reporter: mharper@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- Comment(by conradwt@…): This also happens on Snow Leopard Build (10A402a). For example, darnoc-laptop:etc conradwt$ macirb irb: warn: can't alias exit from irb_exit. irb(main):001:0> a = "This is a test" => "This is a test" irb(main):002:0> puts a NameError: undefined local variable or method `a' for main:TopLevel from 0:in `eval:' from 0:in `evaluate:' from 0:in `evaluate:' from 0:in `signal_status:' from 0:in `each_top_level_statement' from 0:in `eval_input' from 0:in `start:' -- Ticket URL: <http://www.macruby.org/trac/ticket/298#comment:1> MacRuby <http://macruby.org/>
#298: macirb loses track of local variables ----------------------------------------+----------------------------------- Reporter: mharper@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------------+----------------------------------- Comment(by lsansonetti@…): For a strange reason you can't assign a local variable in the very first expression. It works for further expressions though. I did not investigate yet the reason of this bug, if anyone wants to have a look at it and extract the problem into a code snippet, it would be super helpful! macirb is still very buggy right now on experimental and needs more love :) -- Ticket URL: <http://www.macruby.org/trac/ticket/298#comment:2> MacRuby <http://macruby.org/>
#298: macirb loses track of local variables ----------------------------------------+----------------------------------- Reporter: mharper@… | 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: This should be fixed in trunk since a few weeks. There are still a couple of bugs related to Binding, but at least local variables should work. -- Ticket URL: <http://www.macruby.org/trac/ticket/298#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby