Bugs item #4912, was opened at 2006-07-01 22:08
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4912&group_id=426

Category: Standard Library
Group: None
Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: DL H (acrylic)
Assigned to: Eric Hodel (drbrain)
Summary: ri crash after running rdoc on ActiveSupport

Initial Comment:
ri (and gemri) will crash after generating ri documentation for ActiveSupport (a rails library).

$ ri String
/opt/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:99:in `concat': can't convert nil into Array (TypeError)
        from /opt/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:99:in `merge_in'
        from /opt/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:56:in `get_class'
        from /opt/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:52:in `get_class'
        from /opt/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:70:in `report_class_stuff'
        from /opt/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:106:in `get_info_for'
        from /opt/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:135:in `process_args'
        from /opt/local/lib/ruby/1.8/rdoc/ri/ri_driver.rb:134:in `process_args'
        from /opt/local/bin/gemri:24


----------------------------------------------------------------------

>Comment By: Eric Hodel (drbrain)
Date: 2007-05-21 16:41

Message:
Please try to reproduce on latest stable ruby.

----------------------------------------------------------------------

Comment By: Nobuyoshi Nakada  (nobu)
Date: 2007-05-09 17:47

Message:
This bug is fixed in the repository.

----------------------------------------------------------------------

Comment By: Jason Merrill (jwmerrill)
Date: 2006-08-22 07:01

Message:
A stopgap solution is to change line 97 in ri_descriptions from  

else

to
      
elsif old.comment

This stops nil from being passed into the concat statement in line 99 that's causing ri to choke, and fixes the problem for me at least.

----------------------------------------------------------------------

Comment By: Jason Merrill (jwmerrill)
Date: 2006-08-18 07:03

Message:
This error also occurs under windows:

> ruby --version
ruby 1.8.4 (2006-04-14) [i386-mswin32]

----------------------------------------------------------------------

Comment By: DL H (acrylic)
Date: 2006-07-01 22:09

Message:
$ ruby --version
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=4912&group_id=426