Sorry for I?m a newbie of IronRuby. I just want to do a most simple thing in IronRuby: a = 10 puts a then I got a lots of exception message, said that the ?a? is a undefined local variable. But I can do this in ruby. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20071126/6f2a01cd/attachment.html
> I just want to do a most simple thing in IronRuby: > > a = 10 > puts a > > then I got a lots of exception message, said that the "a" is a undefined > local variable.I can confirm this behaviour, but only when run from the interactive console. It runs fine from file. -- Seo Sanghyeon
I can confirm this behavior too. But when i run the interactive console in powershell I can use the interactive console and I get no error On 11/26/07, Sanghyeon Seo <sanxiyn at gmail.com> wrote:> > > I just want to do a most simple thing in IronRuby: > > > > a = 10 > > puts a > > > > then I got a lots of exception message, said that the "a" is a undefined > > local variable. > > I can confirm this behaviour, but only when run from the interactive > console. It runs fine from file. > > -- > Seo Sanghyeon > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20071126/cdefcab5/attachment.html
This is a recognised bug in the current snapshot. Pete John Lam wrote:>> Thanks for the bug report. I forgot to include this in our release notes.>>>> 1. Spec stack trace reporting is broken in this release. The specs run (as you can see by the log, but there''s something busted in the reporting - we''ll investigate).>>>> 2. Local variables are broken in the console only - they work fine in your programs. This is by design as the next major work item on our plate is to fix hosting in DLR, which will fix hosting in IronRuby, which will enable eval* to work.>>>> Thanks,>> -JohnFrom: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday,26 November 26, 2007 09:25 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] I can''t get starting! I can confirm this behavior too. But when i run the interactive console in powershell I can use the interactive console and I get no error On 11/26/07, Sanghyeon Seo <sanxiyn at gmail.com> wrote:> I just want to do a most simple thing in IronRuby: > > a = 10 > puts a > > then I got a lots of exception message, said that the "a" is a undefined > local variable.I can confirm this behaviour, but only when run from the interactive console. It runs fine from file. -- Seo Sanghyeon _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20071126/ad731626/attachment.html
Yes, this is expected for the time being. Only interactive console is affected. Please, use globals as a workaround until it gets fixed. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon Darwin Sent: Monday, November 26, 2007 3:40 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] I can''t get starting! This is a recognised bug in the current snapshot. Pete John Lam wrote:>> Thanks for the bug report. I forgot to include this in our release notes. >> >> 1. Spec stack trace reporting is broken in this release. The specs run (as you can see by the log, but there''s something busted in the reporting - we''ll investigate). >> >> 2. Local variables are broken in the console only - they work fine in your programs. This is by design as the next major work item on our plate is to fix hosting in DLR, which will fix hosting in IronRuby, which will enable eval* to work. >> >> Thanks, >> -JohnFrom: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday,26 November 26, 2007 09:25 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] I can''t get starting! I can confirm this behavior too. But when i run the interactive console in powershell I can use the interactive console and I get no error On 11/26/07, Sanghyeon Seo <sanxiyn at gmail.com<mailto:sanxiyn at gmail.com>> wrote:> I just want to do a most simple thing in IronRuby: > > a = 10 > puts a > > then I got a lots of exception message, said that the "a" is a undefined > local variable.I can confirm this behaviour, but only when run from the interactive console. It runs fine from file. -- Seo Sanghyeon _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20071126/9ce9e6e3/attachment-0001.html
OK, I''ve got. thank you all From: Tomas.Matousek at microsoft.comTo: ironruby-core at rubyforge.orgDate: Mon, 26 Nov 2007 08:47:04 -0800Subject: Re: [Ironruby-core] I can''t get starting! Yes, this is expected for the time being. Only interactive console is affected. Please, use globals as a workaround until it gets fixed. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Peter Bacon DarwinSent: Monday, November 26, 2007 3:40 AMTo: ironruby-core at rubyforge.orgSubject: Re: [Ironruby-core] I can''t get starting! This is a recognised bug in the current snapshot. Pete John Lam wrote:>> Thanks for the bug report. I forgot to include this in our release notes. >> >> 1. Spec stack trace reporting is broken in this release. The specs run (as you can see by the log, but there''s something busted in the reporting - we''ll investigate). >> >> 2. Local variables are broken in the console only - they work fine in your programs. This is by design as the next major work item on our plate is to fix hosting in DLR, which will fix hosting in IronRuby, which will enable eval* to work. >> >> Thanks, >> -JohnFrom: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto CarreroSent: Monday,26 November 26, 2007 09:25To: ironruby-core at rubyforge.orgSubject: Re: [Ironruby-core] I can''t get starting! I can confirm this behavior too. But when i run the interactive console in powershell I can use the interactive console and I get no error On 11/26/07, Sanghyeon Seo <sanxiyn at gmail.com> wrote:> I just want to do a most simple thing in IronRuby: >> a = 10> puts a>> then I got a lots of exception message, said that the "a" is a undefined> local variable.I can confirm this behaviour, but only when run from the interactive console. It runs fine from file.--Seo Sanghyeon_______________________________________________Ironruby-core mailing listIronruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core_________________________________________________________________ MSN ???????????????????? http://cn.msn.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20071127/154a0efd/attachment.html