HighLine problems

J

jogloran

------=_Part_3694_4235115.1143718247676
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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

------=_Part_3694_4235115.1143718247676--
 
J

James Edward Gray II

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. ;)
/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

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 Gray II
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top