rdoc breaks on some types of links

J

Joel VanderWerf

Not sure exactly which link is causing this, but it seems like bug in
rdoc (and it wasn't a problem in earlier versions):

/usr/local/lib/ruby/gems/1.8/gems/rdoc-2.0.0/lib/rdoc/markup/to_html.rb:50:in
`gen_url': uninitialized constant RDoc::Markup::ToHtml::HTML (NameError)
from
/usr/local/lib/ruby/gems/1.8/gems/rdoc-2.0.0/lib/rdoc/markup/to_html.rb:86:in
`handle_special_TIDYLINK'
 
R

Ryan Davis

Not sure exactly which link is causing this, but it seems like bug
in rdoc (and it wasn't a problem in earlier versions):

/usr/local/lib/ruby/gems/1.8/gems/rdoc-2.0.0/lib/rdoc/markup/
to_html.rb:50:in `gen_url': uninitialized constant
RDoc::Markup::ToHtml::HTML (NameError)
from /usr/local/lib/ruby/gems/1.8/gems/rdoc-2.0.0/lib/rdoc/
markup/to_html.rb:86:in `handle_special_TIDYLINK'

do you know how to repro that?

was it a specific gem installed or command that caused it?

Also, filing a bug is preferred.
 
J

Joel VanderWerf

Ryan said:
do you know how to repro that?

was it a specific gem installed or command that caused it?

Also, filing a bug is preferred.

Sorry, that was very vague. I was hoping that it was something obvious
about that line.

Will try to reproduce it and file a bug if I can make it concise....

Where should it be finding that constant, RDoc::Markup::ToHtml::HTML,
anyway? The file markup/to_html.rb doesn't seem to define it, and grep
doesn't find it:

$ grep -P '(class|module).*HTML' **/*.rb
generator/chm.rb:class RDoc::Generator::CHM < RDoc::Generator::HTML
generator/html/hefss.rb:module RDoc::Generator::HTML::HEFSS
generator/html/html.rb:module RDoc::Generator::HTML::HTML
generator/html/kilmer.rb:module RDoc::Generator::HTML::KILMER
generator/html/one_page_html.rb:module RDoc::Generator::HTML::ONE_PAGE_HTML
generator/html.rb:class RDoc::Generator::HTML
generator/html.rb:class RDoc::Generator::HTMLInOne < RDoc::Generator::HTML
generator/xml.rb:class RDoc::Generator::XML < RDoc::Generator::HTML
markup.rb:# strike-through text. When then subclass the HTML output
class to deal
markup/to_flow.rb: # required. This is a no-op in the base class, but
is overridden in HTML
markup/to_html.rb: # required. This is a no-op in the base class, but
is overridden in HTML
 
J

Joel VanderWerf

Joel said:
Sorry, that was very vague. I was hoping that it was something obvious
about that line.

Will try to reproduce it and file a bug if I can make it concise....

Where should it be finding that constant, RDoc::Markup::ToHtml::HTML,
anyway? The file markup/to_html.rb doesn't seem to define it, and grep
doesn't find it:

$ grep -P '(class|module).*HTML' **/*.rb
generator/chm.rb:class RDoc::Generator::CHM < RDoc::Generator::HTML
generator/html/hefss.rb:module RDoc::Generator::HTML::HEFSS
generator/html/html.rb:module RDoc::Generator::HTML::HTML
generator/html/kilmer.rb:module RDoc::Generator::HTML::KILMER
generator/html/one_page_html.rb:module RDoc::Generator::HTML::ONE_PAGE_HTML
generator/html.rb:class RDoc::Generator::HTML
generator/html.rb:class RDoc::Generator::HTMLInOne < RDoc::Generator::HTML
generator/xml.rb:class RDoc::Generator::XML < RDoc::Generator::HTML
markup.rb:# strike-through text. When then subclass the HTML output
class to deal
markup/to_flow.rb: # required. This is a no-op in the base class, but
is overridden in HTML
markup/to_html.rb: # required. This is a no-op in the base class, but
is overridden in HTML

Ok found the cause of the bug, if it is a bug (maybe it's just a change
in 2.0).

$ cat bug.rb
# [{foo/}[link:foo/]]
def bar
end

I'll file this on the tracker.
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top