[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

rdoc reinstall breaks fast-ri - now what?

matt

8/4/2008 3:27:00 PM

I am really just not having any luck with rdoc / ri these days. Because
the new version of rdoc promised that File#read would finally succeed
(automatic lookup of methods in the supercclass), I downloaded it. It
didn't change anything so I rebuilt my documentation from scratch. Now
fast-ri is broken. Can anyone divine from this error what's gone wrong
and what I should do? Thx - m.

$ qri String
/usr/local/lib/ruby/1.8/yaml.rb:133:in `transfer': invalid subclass
(TypeError)
from /usr/local/lib/ruby/1.8/yaml.rb:133:in `node_import'
from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:72:in
`deserialize'
from /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:354:in
`get_class'
from /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:354:in
`open'
from /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:354:in
`get_class'
from /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:352:in
`each'
from /usr/local/lib/ruby/site_ruby/1.8/fastri/ri_index.rb:352:in
`get_class'
from
/usr/local/lib/ruby/site_ruby/1.8/fastri/ri_service.rb:209:in `info'
from
/usr/local/lib/ruby/site_ruby/1.8/fastri/ri_service.rb:422:in
`capture_stdout'
from
/usr/local/lib/ruby/site_ruby/1.8/fastri/ri_service.rb:208:in `info'
from /usr/local/bin/qri:342
from /usr/local/bin/qri:337:in `each'
from /usr/local/bin/qri:337


--
matt neuburg, phd = matt@tidbits.com, http://www.tidbits...
Leopard - http://www.takecontrolbooks.com/leopard-custom...
AppleScript - http://www.amazon.com/gp/product/...
Read TidBITS! It's free and smart. http://www.t...
2 Answers

Eric Hodel

8/4/2008 11:28:00 PM

0

On Aug 4, 2008, at 08:28 AM, matt neuburg wrote:

> I am really just not having any luck with rdoc / ri these days.
> Because
> the new version of rdoc promised that File#read would finally succeed
> (automatic lookup of methods in the supercclass), I downloaded it. It
> didn't change anything so I rebuilt my documentation from scratch. Now
> fast-ri is broken. Can anyone divine from this error what's gone wrong
> and what I should do? Thx - m.
>
> $ qri String
> /usr/local/lib/ruby/1.8/yaml.rb:133:in `transfer': invalid subclass
> (TypeError)
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `node_import'
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
> from /usr/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:72:in
> `deserialize'

Looks like qri is using RDoc 1.0.1, which is shipped with ruby. RDoc
2's on-disk YAML format is not backwards compatible with RDoc 1. RDoc
2 can read RDoc 1's format due to some use of regular expressions.
fast-ri would need to be updated to read the RDoc 2 classes.

matt

8/6/2008 12:19:00 AM

0

Eric Hodel <drbrain@segment7.net> wrote:

> On Aug 4, 2008, at 08:28 AM, matt neuburg wrote:
>
> > I am really just not having any luck with rdoc / ri these days.
> > Because
> > the new version of rdoc promised that File#read would finally succeed
> > (automatic lookup of methods in the supercclass), I downloaded it. It
> > didn't change anything so I rebuilt my documentation from scratch. Now
> > fast-ri is broken. Can anyone divine from this error what's gone wrong
> > and what I should do? Thx - m.
> >
> > $ qri String
> > /usr/local/lib/ruby/1.8/yaml.rb:133:in `transfer': invalid subclass
> > (TypeError)
> > from /usr/local/lib/ruby/1.8/yaml.rb:133:in `node_import'
> > from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
> > from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
> > from /usr/local/lib/ruby/1.8/rdoc/ri/ri_descriptions.rb:72:in
> > `deserialize'
>
> Looks like qri is using RDoc 1.0.1, which is shipped with ruby. RDoc
> 2's on-disk YAML format is not backwards compatible with RDoc 1. RDoc
> 2 can read RDoc 1's format due to some use of regular expressions.
> fast-ri would need to be updated to read the RDoc 2 classes.

Thx, Eric, as always. If this is right, then it's all up to fastri. I've
filed a bug report at fastri.rubyforge.com, and also I've notified the
TextMate list (TextMate's RubyMate help functionality uses qri, which is
how I discovered the problem). m.

--
matt neuburg, phd = matt@tidbits.com, http://www.tidbits...
Leopard - http://www.takecontrolbooks.com/leopard-custom...
AppleScript - http://www.amazon.com/gp/product/...
Read TidBITS! It's free and smart. http://www.t...