# Arachno gets problem?

**URL:** <https://www.ruby-forum.com/t/arachno-gets-problem/83273>\
**Category:** Ruby\
**Created:** [January 24, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/arachno-gets-problem/83273 "2007-01-24T20:30:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@bartb](https://www.ruby-forum.com/u/bartb)\
**Post date:** [January 24, 2007, 8:30pm UTC](https://www.ruby-forum.com/t/arachno-gets-problem/83273/1 "2007-01-24T20:30:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bartb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/848f3c/32.png) [@bartb](https://www.ruby-forum.com/u/bartb)\
**Post date:** [January 27, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/arachno-gets-problem/83273/2 "2007-01-27T20:03:12Z")

</div>

Hi Bart,

On 1/24/07, Bart B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
