# HighLine problems

**URL:** <https://www.ruby-forum.com/t/highline-problems/56347>\
**Category:** Ruby\
**Created:** [March 30, 2006, 1:31pm UTC](https://www.ruby-forum.com/t/highline-problems/56347 "2006-03-30T13:31:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jogloran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ac91a4/32.png) [@jogloran](https://www.ruby-forum.com/u/jogloran)\
**Post date:** [March 30, 2006, 1:31pm UTC](https://www.ruby-forum.com/t/highline-problems/56347/1 "2006-03-30T13:31:13Z")

</div>

I have a little application which uses the HighLine 1.2.0 gem: it’s  
worked  
perfectly under Windows and Linux. When invoked in Mac OS X, however, I  
get:

/opt/local/lib/ruby/gems/1.8/gems/highline-1.2.0/lib/highline.rb:576:in  
`get_line': The input stream is exhausted. (EOFError) from /opt/local/lib/ruby/gems/1.8/gems/highline-1.2.0/lib/highline.rb:596:in`get\_response’  
from  
/opt/local/lib/ruby/gems/1.8/gems/highline-1.2.0/lib/highline.rb:177:in  
`ask' from /opt/local/lib/ruby/gems/1.8/gems/highline-1.2.0/lib/highline.rb:272:in`choose’  
from lib2.rb:90:in `ask_action' from lib2.rb:22:in`initialize’  
from lib2.rb:21:in `initialize’  
from lib2.rb:303

when I try to read input.

This is ruby 1.8.4 (2005-12-24) [i686-darwin8.5.2].

I’d be happy to hear any ideas.

Thanks…

jogloran

---

<div class="post-metadata">

**Author:** ![jogloran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ac91a4/32.png) [@jogloran](https://www.ruby-forum.com/u/jogloran)\
**Post date:** [March 30, 2006, 7:04pm UTC](https://www.ruby-forum.com/t/highline-problems/56347/2 "2006-03-30T19:04:59Z")

</div>

On Mar 30, 2006, at 5:30 AM, jogloran wrote:

> I have a little application which uses the HighLine 1.2.0 gem: it’s  
> worked  
> perfectly under Windows and Linux. When invoked in Mac OS X,  
> however, I get:

HighLine is developed on OS X, so it _should_ work OK there. 😉

> highline.rb:272:in  
> `choose' from lib2.rb:90:in`ask\_action’  
> from lib2.rb:22:in `initialize' from lib2.rb:21:in`initialize’  
> from lib2.rb:303

This error was added recently as a “feature”, to allow user code to  
detect the end of a stream. (It was intended mainly for scripts  
reading from STDIN and wanting to notice a control-D/control-z  
keystroke.)

> when I try to read input.
> 
> This is ruby 1.8.4 (2005-12-24) [i686-darwin8.5.2].
> 
> I’d be happy to hear any ideas.

Can you show me a simple example of how you are feeding the script  
input when the error is triggered and the HighLine code involved?  
(You can email me privately, so we don’t disturb the list with our  
bug hunt.)

James Edward G. II
