Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ruby-1.8.1: problem running rdoc --ri on Linux

Reply
Thread Tools

ruby-1.8.1: problem running rdoc --ri on Linux

 
 
Leo
Guest
Posts: n/a
 
      07-07-2004
Dear Ruby experts,
I just compiled and installed ruby-1.8.1 on my SuSE-9.1 box.
(I did carefully uninstalled SuSE's version of Ruby prior to my own
installation).

Yet, when I run

sh$ rdoc --ri

either from the source tree or from installation tree
the end result is the same: after many minutes of hard labor
ruby throws an exception:

Generating RI...
/pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/markup/simple_markup/to_flow.rb:92:in `accept_rule': undefined local variable or method `size' for #<SM::ToFlow:0x4252d920> (NameError)
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:170:in `accept'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:165:in `each'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:165:in `accept'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/markup/simple_markup.rb:259:in `convert'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/generators/ri_generator.rb:224:in `markup'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/generators/ri_generator.rb:153:in `generate_method_info'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/generators/ri_generator.rb:133:in `generate_class_info'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/generators/ri_generator.rb:132:in `each'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/generators/ri_generator.rb:132:in `generate_class_info'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/generators/ri_generator.rb:90:in `process_class'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/generators/ri_generator.rb:85:in `generate'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/generators/ri_generator.rb:84:in `each'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/generators/ri_generator.rb:84:in `generate'
from /pkg/ruby-1.8.1/lib/ruby/1.8/rdoc/rdoc.rb:210:in `document'
from /pkg/bin/rdoc:63


Indeed, inspecting 'to_flow.rb' and 'fragments.rb' reveals that there is no method
called 'size' and also I do not see any variable that goes by the name 'size'.
Is it a bug?? How could I finally build my ri database??

Also Dave mentioned in ruby-talk:97877 that one should run rdoc --ri
the source tree because it contains files ".document" that control which *.rb
files get included. Well, canonical ruby-1.8.1.tar.gz tar-ball has none of
such files.


Thanks,
--Leo--

my actual email follows:
[ LEOR _at_ WINLAB _dot_ RUTGERS _dot_ EDU ]

 
Reply With Quote
 
 
 
 
Dave Thomas
Guest
Posts: n/a
 
      07-08-2004

On Jul 7, 2004, at 18:22, Leo wrote:

> Dear Ruby experts,
> I just compiled and installed ruby-1.8.1 on my SuSE-9.1 box.
> (I did carefully uninstalled SuSE's version of Ruby prior to my own
> installation).


Could you try this with a 1.8.2 snapshot?


Cheers

Dave



 
Reply With Quote
 
 
 
 
Leo
Guest
Posts: n/a
 
      07-08-2004
Dave Thomas wrote:
>
> On Jul 7, 2004, at 18:22, Leo wrote:
>
>> Dear Ruby experts,
>> I just compiled and installed ruby-1.8.1 on my SuSE-9.1 box.
>> (I did carefully uninstalled SuSE's version of Ruby prior to my own
>> installation).

>
> Could you try this with a 1.8.2 snapshot?
>
>
> Cheers
>
> Dave


Ruby-1.8.2 snapshot 2004.07.08 had no problems running rdoc and ri.
Thanks, Dave!!!

Which begs the question: When finally ruby 1.8.2 will be released.
I do not feel comfortable running 1.8.1 with many important things like
rdoc broken.

--Leo--

Email address follows:
[LEOR _at_ WINLAB _dot_ RUTGERS _dot_ EDU ]
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use rdoc parsers outside of rdoc? Paul Van Delst Ruby 0 07-27-2006 07:18 PM
rdoc: how to add readme.rdoc as index.html? Iwan van der Kleyn Ruby 1 04-26-2005 12:37 PM
[RDOC] Using a template causes rdoc not to document some classes Daniel Berger Ruby 1 11-02-2004 08:23 PM
rdoc bug (and rdoc bug tracker site is down) Brian Schröder Ruby 5 09-18-2004 02:08 PM
rdoc: how to generate rdoc & ri documentation of standard library? Andreas Schwarz Ruby 6 01-01-2004 03:09 AM



Advertisments