[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ri busted for some core classes

Gavin Kistner

7/21/2006 8:56:00 PM

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?

2 Answers

Gavin Kistner

7/21/2006 9:06:00 PM

0

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

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#f8e9cb...

Eric Hodel

7/21/2006 11:28:00 PM

0

On Jul 21, 2006, at 2:10 PM, Phrogz 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? :)
>
> 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_f...
> d57bf1bc22259364/f8e9cbb083915e9b?
> lnk=gst&q=ri_descriptions.rb&rnum=1#f8e9cbb083915e9b

This was already fixed in CVS.

--
Eric Hodel - drbrain@segment7.net - http://blog.se...
This implementation is HODEL-HASH-9600 compliant

http://trackmap.rob...