[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Arachno gets problem?

Bart Braem

1/24/2007 7:25:00 PM

I'm trying Arachno as a IDE and it gives me a strange problem with gets.
When I try to run this:
puts gets

I get

........./test.rb:8:in `gets': Bad file descriptor (Errno::EBADF)
from ........./test.rb:8
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
from /home/......./ArachnoRuby//arachno_script_stub.rb:50

Why doe I get a Bad file descriptor for gets?
I do get warnings for my Ruby executable on my Gentoo Linux, it seems not
compatible with their debugger.

Any ideas on what is going on? The only information I can find is in
Japanese, which unfortunately I can not read.

Bart
1 Answer

Wayne Vucenic

1/27/2007 7:02:00 PM

0

Hi Bart,

On 1/24/07, Bart Braem <bart.braem@gmail.com> wrote:
> I'm trying Arachno as a IDE and it gives me a strange problem with gets.
> When I try to run this:
> puts gets
>
> I get
>
> ......../test.rb:8:in `gets': Bad file descriptor (Errno::EBADF)

When running a script in Arachno that reads from stdin, it's necessary
to do the following:
In the "Run" menu, select "Edit Target" and select the appropriate
target. In the "Ruby Target Properties" dialog that opens, select the
"Program" tab, and check the "Run Script in Interactive Console"
checkbox.

Wayne

-----
Wayne Vucenic
No Bugs Software
Ruby, C#, and Erlang Agile Contract Programming in Silicon Valley