Trying to RDoc Ruby 1.8.0

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default Trying to RDoc Ruby 1.8.0

    Hi all,

    I have been trying to run RDoc on the source distribution of Ruby 1.8.0.

    $ rdoc --version
    RDoc V0.9.0: 2003/03/10 03:50:33 (1.70)
    $ rdoc --op rdoc

    class.c:
    struct.c:
    dmyext.c:
    ...

    After parsing all source files (about 20 minutes) and printing
    "Generating HTML...", RDoc exits with the following error message:

    /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:371:in `build_method_detail_list': undefined method `as_href' for nil:NilClass (NoMethodError)
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:368:in `map'
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:368:in `build_method_detail_list'
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:357:in `each'
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:357:in `build_method_detail_list'
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:355:in `each'
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:355:in `build_method_detail_list'
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:354:in `each'
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:354:in `build_method_detail_list'
    ... 7 levels...
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:1053:in `generate_html'
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/generators/html_generator.rb:979:in `generate'
    from /usr/local/lib/ruby/site_ruby/1.8/rdoc/rdoc.rb:210:in `document'
    from /usr/local/bin/rdoc:6

    I then ran RDoc on each subdirectory in lib, to find out which module
    triggered the error. RDoc fails on lib/webrick.

    Running RDoc on one file at a time in lib/webrick does not trigger the
    error.

    I don't know whether RDoc was designed to be run on the entire Ruby
    source, so perhaps I am making a mistake by trying to use it that way. :-)

    Perhaps someone has already managed to run RDoc (or some other
    documentation tool on Ruby 1.8.0 and made it available online?

    Jonas Lindström


    Jonas Lindström Guest

  2. Similar Questions and Discussions

    1. Bug in RDoc?
      I just found a bug (?) in rdoc tool. I have the following directory structure: doc/ lib/ sws.rb sws/ some .rb files
    2. rdoc feature or bug?
      I did a test output on the example.rb file using the stable releas of rdoc. I noticed that when it produces the xml file, it actually outputs some...
    3. RDoc templates...
      Yesterday I tried to write a new RDoc template which did the following: - Instead of listing attributes, listed the equivalent accessor and...
    4. [ANN] ruby-freedb, ruby-serialport, ruby-mp3info moved to Rubyforge
      http://ruby-freedb.rubyforge.org/ http://ruby-serialport.rubyforge.org/ http://ruby-mp3info.rubyforge.org/ bye! --...
    5. RDoc now does constants
      I've added experimental support for documenting constants to RDoc. Right now it's only in the CVS version, and only the default HTML template makes...
  3. #2

    Default Re: Trying to RDoc Ruby 1.8.0


    On Nov 7, 2003, at 6:03, Jonas Lindström wrote:
    > Hi all,
    >
    > I have been trying to run RDoc on the source distribution of Ruby
    > 1.8.0.
    >
    Let me look at this when I get back off the road.

    Dave


    Dave Thomas Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139