# I can't get starting!

**URL:** <https://www.ruby-forum.com/t/i-cant-get-starting/121260>\
**Category:** IronRuby\
**Created:** [November 26, 2007, 9:04am UTC](https://www.ruby-forum.com/t/i-cant-get-starting/121260 "2007-11-26T09:04:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/u/SSSSSSSSSS_S_S)\
**Post date:** [November 26, 2007, 9:04am UTC](https://www.ruby-forum.com/t/i-cant-get-starting/121260/1 "2007-11-26T09:04:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/u/SSSSSSSSSS_S_S)\
**Post date:** [November 26, 2007, 9:40am UTC](https://www.ruby-forum.com/t/i-cant-get-starting/121260/2 "2007-11-26T09:40:16Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/u/SSSSSSSSSS_S_S)\
**Post date:** [November 26, 2007, 10:25am UTC](https://www.ruby-forum.com/t/i-cant-get-starting/121260/3 "2007-11-26T10:25:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/u/SSSSSSSSSS_S_S)\
**Post date:** [November 26, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/i-cant-get-starting/121260/4 "2007-11-26T12:40:37Z")

</div>

This is a recognised bug in the current snapshot.

Pete

John L. 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).

> >

> > 1. 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,

> > -John

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Monday,26 November 26, 2007 09:25  
To: removed\_email\_address@domain.invalid  
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 S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 S.

---

<div class="post-metadata">

**Author:** ![SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/u/SSSSSSSSSS_S_S)\
**Post date:** [November 26, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/i-cant-get-starting/121260/5 "2007-11-26T17:49:49Z")

</div>

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: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Peter Bacon  
Darwin  
Sent: Monday, November 26, 2007 3:40 AM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] I can’t get starting!

This is a recognised bug in the current snapshot.  
Pete

John L. 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,  
> > -John

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Monday,26 November 26, 2007 09:25  
To: removed\_email\_address@domain.invalid  
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 S. \<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
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 S.

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

---

<div class="post-metadata">

**Author:** ![SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@SSSSSSSSSS\_S\_S](https://www.ruby-forum.com/u/SSSSSSSSSS_S_S)\
**Post date:** [November 27, 2007, 11:53am UTC](https://www.ruby-forum.com/t/i-cant-get-starting/121260/6 "2007-11-27T11:53:54Z")

</div>

OK, I’ve got. thank you all

From: removed\_email\_address@domain.invalid: removed\_email\_address@domain.invalid:  
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: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Peter Bacon  
DarwinSent: Monday, November 26, 2007 3:40 AMTo:  
removed\_email\_address@domain.invalid: Re: [Ironruby-core] I can’t get  
starting!

This is a recognised bug in the current snapshot.  
Pete

John L. 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,  
> > -John

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
CarreroSent: Monday,26 November 26, 2007 09:25To:  
removed\_email\_address@domain.invalid: 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
