Bug in RDoc?

M

Marek Janukowicz

I just found a bug (?) in rdoc tool. I have the following directory
structure:

doc/
lib/
sws.rb
sws/
some .rb files


When I run the following command (in doc/ directory):
rdoc -o rdoc -T kilmer ../lib/*

I get the following error:
application.rb: /usr/lib/ruby/site_ruby/1.8/rdoc/rdoc.rb:155:in
`initialize': No such file or directory - .lib/sws/application.rb
(Errno::ENOENT)
from /usr/lib/ruby/site_ruby/1.8/rdoc/rdoc.rb:155:in `open'
from /usr/lib/ruby/site_ruby/1.8/rdoc/rdoc.rb:155:in `parse_files'
from /usr/lib/ruby/site_ruby/1.8/rdoc/rdoc.rb:152:in `each'
from /usr/lib/ruby/site_ruby/1.8/rdoc/rdoc.rb:152:in `parse_files'
from /usr/lib/ruby/site_ruby/1.8/rdoc/rdoc.rb:188:in `document'
from /usr/bin/rdoc:6

But if I run the same command giving full path instead the documentation
is generated without any problem.

Of course the file ../lib/sws/application.rb exists.
 

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,779
Messages
2,569,606
Members
45,239
Latest member
Alex Young

Latest Threads

Top