[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[RDOC] sections bug?

Joel VanderWerf

12/6/2004 12:27:00 AM


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'


1 Answer

Dave Thomas

12/6/2004 1:20:00 AM

0


On Dec 5, 2004, at 18:26, Joel VanderWerf wrote:

>
> 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