Still get this RDoc error using HTML

I

Intransition

It occurs in 1.8.7 and 1.9.2.

$ ri -f html String
/home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/markup/
to_html.rb:192:in `accept_rule': undefined method `>' for nil:NilClass
(NoMethodError)
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/
markup/rule.rb:7:in `accept'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/
markup/document.rb:46:in `block in accept'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/
markup/document.rb:45:in `each'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/
markup/document.rb:45:in `accept'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:549:in `block in display'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:971:in `page'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:548:in `display'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:635:in `display_class'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:683:in `display_name'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:710:in `block in display_names'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:707:in `each'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:707:in `display_names'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:1032:in `run'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/ri/
driver.rb:309:in `run'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/bin/ri:5:in
`<top (required)>'
from /home/trans/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/
roll/library.rb:726:in `load'
from /home/trans/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/
roll/library.rb:726:in `load'
from /home/trans/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/
roll/kernel.rb:38:in `load'
from /home/trans/.rvm/gems/ruby-1.9.2-p0/bin/ri:19:in `<main>'
 
B

brabuhr

It occurs in 1.8.7 and 1.9.2.

$ ri -f html String
/home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/markup/
to_html.rb:192:in `accept_rule': undefined method `>' for nil:NilClass
(NoMethodError)

ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
<b>Class: String</b><hr>...

ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
:in `accept_rule': undefined method `>' for nil:NilClass (NoMethodError)

Adding an "|| 0" on the end of line 191 at least gets it to spit out
html; but, I didn't look any deeper to see where the rule's with nil
weight came from:
#<struct RDoc::Markup::Rule weight=1>
#<struct RDoc::Markup::Rule weight=1>
#<struct RDoc::Markup::Rule weight=nil>
:in `accept_rule': undefined method `>' for nil:NilClass (NoMethodError)
 
E

Eric Hodel

It occurs in 1.8.7 and 1.9.2.

$ ri -f html String
/home/trans/.rvm/gems/ruby-1.9.2-p0/gems/rdoc-2.5.11/lib/rdoc/markup/
to_html.rb:192:in `accept_rule': undefined method `>' for nil:NilClass
(NoMethodError)

I see you filed a bug report but no patch. I will fix it when I have time.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top