[RDOC] sections bug?

  • Thread starter Joel VanderWerf
  • Start date
J

Joel VanderWerf

I'm trying sections for the first time, using the latest stable snapshot:

ruby 1.8.2 (2004-12-06) [i686-linux]

Here's my sections.rb file:

class Foo

# :section: first

def first_method
end

# :section: second

def second_method
end

end


And here's the output:

RDoc failure in section.rb at or around line 5 column 0

Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.

The internal error was:

/usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:2314:in
`look_for_directives_in': undefined method `clear' for "# :section:
first\n":String (NoMethodError)
from /usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:2287:in
`handle'
from
/usr/local/lib/ruby/1.8/rdoc/markup/simple_markup/preprocess.rb:21:in
`gsub!'
from
/usr/local/lib/ruby/1.8/rdoc/markup/simple_markup/preprocess.rb:21:in
`handle'
 
D

Dave Thomas

I'm trying sections for the first time, using the latest stable
snapshot:
/usr/local/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:2314:in
`look_for_directives_in': undefined method `clear' for "# :section:
first\n":String (NoMethodError)

My mistake - a 1.9 feature snuck back into the 1.8 branch. Should be OK
now in CVS now.


Cheers

Dave
 

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,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top