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

Discussion in 'Ruby' started by Leo, Jul 8, 2004.

  1. Leo

    Leo Guest

    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 ]
     
    Leo, Jul 8, 2004
    #1
    1. Advertising

  2. Leo

    Dave Thomas Guest

    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
     
    Dave Thomas, Jul 8, 2004
    #2
    1. Advertising

  3. Leo

    Leo Guest

    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 ]
     
    Leo, Jul 8, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Schwarz
    Replies:
    6
    Views:
    263
    Randy W. Sims
    Jan 1, 2004
  2. Brian Schröder
    Replies:
    5
    Views:
    147
    Dave Thomas
    Sep 18, 2004
  3. Daniel Berger
    Replies:
    1
    Views:
    147
    Dave Thomas
    Nov 2, 2004
  4. Iwan van der Kleyn

    rdoc: how to add readme.rdoc as index.html?

    Iwan van der Kleyn, Apr 26, 2005, in forum: Ruby
    Replies:
    1
    Views:
    246
    Stefan Lang
    Apr 26, 2005
  5. Paul Van Delst

    How to use rdoc parsers outside of rdoc?

    Paul Van Delst, Jul 27, 2006, in forum: Ruby
    Replies:
    0
    Views:
    112
    Paul Van Delst
    Jul 27, 2006
Loading...

Share This Page