# Ri IO -\> RuntimeError

**URL:** <https://rubytalk.org/t/ri-io-runtimeerror/12028>\
**Category:** ruby-talk\
**Created:** [9 June 2004 21:13 UTC](https://rubytalk.org/t/ri-io-runtimeerror/12028 "2004-06-09T21:13:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephan\_Kamper3](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Stephan\_Kamper3](https://rubytalk.org/u/Stephan_Kamper3)\
**Post date:** [9 June 2004 21:13 UTC](https://rubytalk.org/t/ri-io-runtimeerror/12028/1 "2004-06-09T21:13:39Z")

</div>

Hi all,

I just noticed that ri fires a RuntimeError when called with  
IO

\> ri IO

-------------------------------------------------------------- Class: IO  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Class +IO+ is the basis for all input and output in Ruby. An I/O  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stream may be \_duplexed\_ (that is, bidirectional), and so may use  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;more than one native operating system stream.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Many of the examples in this section use class +File+, the only  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;standard subclass of +IO+. The two classes are closely associated.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;As used in this section, \_portname\_ may take any of the following  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;forms.

c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_formatter.rb:152:in `display\_list': unknown list type (RuntimeError)  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_formatter.rb:175:in `display\_flow\_item'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_formatter.rb:225:in `display\_flow'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_formatter.rb:224:in `each'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_formatter.rb:224:in `display\_flow'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_display.rb:268:in `display\_flow'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_display.rb:89:in `display\_class\_info'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_display.rb:77:in `page'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_display.rb:139:in `display\_class\_info'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_driver.rb:58:in `report\_class\_stuff'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_driver.rb:93:in `get\_info\_for'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_driver.rb:122:in `process\_args'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_driver.rb:121:in `each'  
&nbsp;&nbsp;from c:/ruby/lib/ruby/1.8/rdoc/ri/ri\_driver.rb:121:in `process\_args'  
&nbsp;&nbsp;from c:/ruby/bin/ri:21

This happens on Win98 as well as XP running the 1-click-installer version 1.8.1-13.

Has anybody else experienced this behaviour?

Happy rubying

Stephan

---

<div class="post-metadata">

**Author:** ![Dave\_Mail\_Archive](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Dave\_Mail\_Archive](https://rubytalk.org/u/Dave_Mail_Archive)\
**Post date:** [10 June 2004 03:57 UTC](https://rubytalk.org/t/ri-io-runtimeerror/12028/2 "2004-06-10T03:57:31Z")

</div>

> Hi all,
> 
> I just noticed that ri fires a RuntimeError when called with  
> IO

...

> This happens on Win98 as well as XP running the 1-click-installer version 1.8.1-13.
> 
> Has anybody else experienced this behaviour?

Strange - I don't have a Window's box with ri installed, but I don't see the behavior here under OSX or Linux. Is it possible you have an old version lying around somewhere? Does anyone else see this?

Cheers

Dave

> **···**
>
> On Jun 9, 2004, at 16:13, Stephan Kämper wrote:

---

<div class="post-metadata">

**Author:** ![Kent\_S2](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@Kent\_S2](https://rubytalk.org/u/Kent_S2)\
**Post date:** [10 June 2004 06:16 UTC](https://rubytalk.org/t/ri-io-runtimeerror/12028/3 "2004-06-10T06:16:56Z")

</div>

I see the same exception in my WinXP box. After poking around, I can only guess that Ruby Windows Installer build 13 comes with the broken yaml library which unmarshals Symbol instances as plain strings.

Cheers,  
Kent.

> **···**
>
> On Jun 9, 2004, at 11:57 PM, Dave Thomas wrote:
> 
> > On Jun 9, 2004, at 16:13, Stephan Kämper wrote:
> > 
> > > Hi all,
> > > 
> > > I just noticed that ri fires a RuntimeError when called with  
> > > IO
> > 
> > ...
> > 
> > > This happens on Win98 as well as XP running the 1-click-installer version 1.8.1-13.
> > > 
> > > Has anybody else experienced this behaviour?
> > 
> > Strange - I don't have a Window's box with ri installed, but I don't see the behavior here under OSX or Linux. Is it possible you have an old version lying around somewhere? Does anyone else see this?
> > 
> > Cheers
> > 
> > Dave

---

<div class="post-metadata">

**Author:** ![Stephan\_Kamper3](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Stephan\_Kamper3](https://rubytalk.org/u/Stephan_Kamper3)\
**Post date:** [10 June 2004 09:43 UTC](https://rubytalk.org/t/ri-io-runtimeerror/12028/4 "2004-06-10T09:43:38Z")

</div>

Hi Dave,

Dave Thomas wrote:

> Strange - I don't have a Window's box with ri installed, but I don't see the behavior here under OSX or Linux. Is it possible you have an old version lying around somewhere?

I really don't think so; it's a brand new PC and that was the first installation of, well, of everything including the OS, Ruby and everything else.

Happy rubying

Stephan

> **···**
>
> > On Jun 9, 2004, at 16:13, Stephan Kämper wrote:

---

<div class="post-metadata">

**Author:** ![Jim\_Menard3](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jim\_Menard3](https://rubytalk.org/u/Jim_Menard3)\
**Post date:** [10 June 2004 11:45 UTC](https://rubytalk.org/t/ri-io-runtimeerror/12028/5 "2004-06-10T11:45:45Z")

</div>

Dave Thomas writes:

> \> Hi all,  
> \>  
> \> I just noticed that ri fires a RuntimeError when called with  
> \> IO  
> \>  
> ...
> 
> \> This happens on Win98 as well as XP running the 1-click-installer  
> \> version 1.8.1-13.  
> \>  
> \> Has anybody else experienced this behaviour?
> 
> Strange - I don't have a Window's box with ri installed, but I don't  
> see the behavior here under OSX or Linux. Is it possible you have an  
> old version lying around somewhere? Does anyone else see this?

\<aol\>  
Me, too. XP Pro, standard ruby 1.8.1 installation. If it matters, I ran ri  
under both a DOS command line window and a Cygwin window.  
\</aol\>

Jim

> **···**
>
> > On Jun 9, 2004, at 16:13, Stephan Kämper wrote:
> 
> --  
> Jim Menard, jimm@io.com, [http://www.io.com/~jimm/](http://www.io.com/~jimm/)  
> "The theory of computation states that all automatons can be emulated by a  
> Turing machine. I have a less abstract but more practical motto: If you can  
> do it on Intel, you can do it damn near anywhere!" -- Eugene O'Neil
