From: James Edward Gray II Date: 2005-10-04T00:45:22+09:00 Subject: HighLine Issue (was Re: Lisp Game (#49)) On Oct 2, 2005, at 7:36 PM, Markus Koenig wrote: > Gregory Brown wrote: > > >> Markus Koenig wrote: >> >> >>> The user interface is the same as the Lisp program's, but >>> omitting the >>> parens. BTW, why does Highline lose when EOF is encountered? I >>> really >>> miss the Ctrl-D... >>> >> >> Hmm... not exactly sure why this doesn't work. I'll try to dig >> through >> HighLine and figure this out if I get some time this week, if James >> doesn't beat me to the punch, that is :) >> > > This is what I get from HighLine 1.0.1: > > [...] > /usr/lib/ruby/site_ruby/1.8/highline/question.rb:362:in `send': > undefined method `strip' for nil:NilClass (NoMethodError) > from /usr/lib/ruby/site_ruby/1.8/highline/question.rb: > 362:in `remove_whitespace' > from /usr/lib/ruby/site_ruby/1.8/highline.rb:527:in `get_line' > from /usr/lib/ruby/site_ruby/1.8/highline.rb:545:in > `get_response' > from /usr/lib/ruby/site_ruby/1.8/highline.rb:155:in `ask' > from lispgame.rb:221 > from lispgame.rb:219:in `loop' > from lispgame.rb:219 > > In question.rb:362 the result of readline (highline.rb:528) or gets > (highline.rb:533) is stripped. I guess the cleanest thing to do is > just > to raise EOFError if any of these methods returns nil. Hello Markus. I'm very interested in understanding this problem and fixing it correctly. Could you please show a trivial HighLine script and how you are trying to use it, so I can wrap my head around this? Thanks. James Edward Gray II