Greg Akins
2008-Jan-27 16:02 UTC
[Ironruby-core] Just starting with IronRuby; problem with rbx
First I appologize for posting with problems so quickly after joining the list. This might have been discussed, but I didn''t see anything after a quick scan of the archives. Last night, I retrieved current source from SVN. I built the project and ran ''rbx''. The session output is listed below. Does anyone else have any idea what might have gone wrong here? Anyone else experiencing similar problems? Here is the transcript of the session C:\Projects\IronRuby\Bin\Debug>rbx 0.1 Copyright (c) Microsoft Corporation. All rights reserved.>>> a = [1,2,3]=> [1, 2, 3]>>> b = a:0:in `main'': undefined local variable or method `a'' for main:Object (NoMethodEr ror) from :0:in `##6''>>>-- Greg Akins Software Development Manager SSI Services http://kc.vanadium.com http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue
John Lam (DLR)
2008-Jan-27 16:13 UTC
[Ironruby-core] Just starting with IronRuby; problem with rbx
We don''t have local variables working in the console. Use instance or globals instead when running interactive mode. - John Sent from my phone -----Original Message----- From: Greg Akins <angrygreg at gmail.com> Sent: Sunday, January 27, 2008 8:04 AM To: ironruby-core at rubyforge.org <ironruby-core at rubyforge.org> Subject: [Ironruby-core] Just starting with IronRuby; problem with rbx First I appologize for posting with problems so quickly after joining the list. This might have been discussed, but I didn''t see anything after a quick scan of the archives. Last night, I retrieved current source from SVN. I built the project and ran ''rbx''. The session output is listed below. Does anyone else have any idea what might have gone wrong here? Anyone else experiencing similar problems? Here is the transcript of the session C:\Projects\IronRuby\Bin\Debug>rbx 0.1 Copyright (c) Microsoft Corporation. All rights reserved.>>> a = [1,2,3]=> [1, 2, 3]>>> b = a:0:in `main'': undefined local variable or method `a'' for main:Object (NoMethodEr ror) from :0:in `##6''>>>-- Greg Akins Software Development Manager SSI Services http://kc.vanadium.com http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core
Peter Bacon Darwin
2008-Jan-27 17:22 UTC
[Ironruby-core] Just starting with IronRuby; problem with rbx
Perhaps you should add a little message on the console when you run up rbx.exe till this is fixed? E.G. C:\Projects\IronRuby\Bin\Debug>rbx 0.1 Copyright (c) Microsoft Corporation. All rights reserved. ============================================================= Local variables not yet working - use instance or globals ============================================================>>>
John Lam (DLR)
2008-Jan-27 18:02 UTC
[Ironruby-core] Just starting with IronRuby; problem with rbx
Peter Bacon Darwin:> 0.1 > Copyright (c) Microsoft Corporation. All rights reserved. > ============================================================> = Local variables not yet working - use instance or globals > ============================================================> >>>Doh. Great idea! I''ll add it the next time around. -John
Greg Akins
2008-Jan-27 18:46 UTC
[Ironruby-core] Just starting with IronRuby; problem with rbx
On Jan 27, 2008 12:22 PM, Peter Bacon Darwin <bacondarwin at googlemail.com> wrote:> Perhaps you should add a little message on the console when you run up > rbx.exe till this is fixed? > E.G. > > C:\Projects\IronRuby\Bin\Debug>rbx > 0.1 > Copyright (c) Microsoft Corporation. All rights reserved. > ============================================================> = Local variables not yet working - use instance or globals > ============================================================> > >>>This appeared to be working in the "Get/Build" screencast. Did it disappear -- Greg Akins Software Development Manager SSI Services http://kc.vanadium.com http://www.pghcodingdojo.org http://www.insomnia-consulting.org/monologue
John Lam (DLR)
2008-Jan-27 19:00 UTC
[Ironruby-core] Just starting with IronRuby; problem with rbx
Greg Akins:> This appeared to be working in the "Get/Build" screencast. Did it > disappearYep. It was a hack that was removed at around the time of RubyConf. It has to do with how we compile the line of code and what context that code gets compiled into. You need to save your local context across compilations for your locals to show up the next time around. This problem doesn''t exist when we compile files as opposed to lines. At some point we''ll be able to just run irb instead of our own console. To run irb, we''ll need the same set of features that we require for our own console. Shouldn''t be much longer before that''s working. -John