ri busted for some core classes

P

Phrogz

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:in
`merge_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:in
`get_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:in
`get_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:in
`process_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:in
`merge_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:in
`get_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:in
`get_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:in
`process_args'
from C:/ruby/bin/ri.bat:55


Anyone got any groovier suggestions?
 
P

Phrogz

Phrogz said:
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? :)

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...&q=ri_descriptions.rb&rnum=1#f8e9cbb083915e9b
 
E

Eric Hodel

Phrogz said:
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? :)

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

This was already fixed in CVS.
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top