Ri busted for some core classes

After upgrading to 1.8.4 using one-click, ri isn’t working for some
items:

C:\Documents and Settings\gavin.kistner>ri Array
C:/ruby/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:99:in concat': can't convert nil into Array (TypeError) from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:99:inmerge_in’
from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_reader.rb:56:in
get_class' from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_reader.rb:52:inget_class’
from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_driver.rb:70:in
report_class_stuff' from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_driver.rb:106:inget_info_for’
from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_driver.rb:135:in
process_args' from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_driver.rb:134:inprocess_args’
from C:/ruby/bin/ri.bat:55

C:\Documents and Settings\gavin.kistner>ri Array#concat

Array#concat
array.concat(other_array) -> array

 Appends the elements in other_array to _self_.

    [ "a", "b" ].concat( ["c", "d"] ) #=> [ "a", "b", "c", "d" ]

C:\Documents and Settings\gavin.kistner>ri --version
ri v1.0.1 - 20041108

C:\Documents and Settings\gavin.kistner>ruby --version
ruby 1.8.4 (2006-04-14) [i386-mswin32]

I found two other references to this in the nntp archive, but no
followup responses. Using fxri for Array or String causes fxri to crash
(unsurprisingly).

I tried regenerating my system-wide ri data, to no avail:

C:\ruby\src\ruby-1.8.4>rdoc -R
array.c:
c…
bignum.c: c…
[snip]
Generating RI…

Files: 83
Classes: 198
Modules: 66
Methods: 2187
Elapsed: 126.922s

C:\ruby\src\ruby-1.8.4>ri Array
C:/ruby/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:99:in concat': can't convert nil into Array (TypeError) from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:99:inmerge_in’
from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_reader.rb:56:in
get_class' from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_reader.rb:52:inget_class’
from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_driver.rb:70:in
report_class_stuff' from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_driver.rb:106:inget_info_for’
from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_driver.rb:135:in
process_args' from C:/ruby/lib/ruby/1.8/rdoc/ri/ri_driver.rb:134:inprocess_args’
from C:/ruby/bin/ri.bat:55

Anyone got any groovier suggestions?

On 7/21/06, Phrogz [email protected] wrote:

Phrogz wrote:

I found two other references to this in the nntp archive, but no
followup responses.

…and then I searched some more and found the answer.[1] Thanks to
oinkoink for posting it. Can someone please get this patch into the
one-click installer so that Ruby doesn’t look broken out of the box
when I convince all my friends to install it? :slight_smile:

Can you please create a bug report here:

http://rubyforge.org/tracker/?atid=715&group_id=167&func=browse

Thanks,
Curt

I mean, our state of documentation is one common sore point (though

Phrogz wrote:

I found two other references to this in the nntp archive, but no
followup responses.

…and then I searched some more and found the answer.[1] Thanks to
oinkoink for posting it. Can someone please get this patch into the
one-click installer so that Ruby doesn’t look broken out of the box
when I convince all my friends to install it? :slight_smile:

I mean, our state of documentation is one common sore point (though
getting better); to have the documentation totally broken for a couple
really core classes is especially bad.

[1]
http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/d57bf1bc22259364/f8e9cbb083915e9b?lnk=gst&q=ri_descriptions.rb&rnum=1#f8e9cbb083915e9b

On Jul 21, 2006, at 2:10 PM, Phrogz wrote:

getting better); to have the documentation totally broken for a couple
really core classes is especially bad.

[1]
http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/
d57bf1bc22259364/f8e9cbb083915e9b?
lnk=gst&q=ri_descriptions.rb&rnum=1#f8e9cbb083915e9b

This was already fixed in CVS.


Eric H. - [email protected] - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com

Thanks