Help with rdoc stdlib on windows 2000

Hi,

I can't get any output using rdoc on the stdlib. I am using windows 2000 and ruby 1.8.4. from the one-click installer. I have tried:

rdoc c:\ruby\lib -f html --op f:\temp\rubydocs

rdoc c:\ruby\lib -f html -o f:\temp\rubydocs

and

rdoc c:\ruby\lib -f chm -o f:\temp\rubydocs --op rubydocs.chm

With nothing but a long wait to show for the effort. Any help would be appreciated.

thx

-Tesla

tesla wrote:

Hi,

I can't get any output using rdoc on the stdlib. I am using windows 2000 and ruby 1.8.4. from the one-click installer. I have tried:

rdoc c:\ruby\lib -f html --op f:\temp\rubydocs

rdoc c:\ruby\lib -f html -o f:\temp\rubydocs

and

rdoc c:\ruby\lib -f chm -o f:\temp\rubydocs --op rubydocs.chm

With nothing but a long wait to show for the effort. Any help would be appreciated.

thx

-Tesla

Here's the error code

Generating HTML...
c:/ruby/lib/ruby/1.8/ftools.rb:218:in `mkdir': Invalid argument - files/c: (Errn
o::EINVAL)
        from c:/ruby/lib/ruby/1.8/ftools.rb:218:in `makedirs'
        from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
        from c:/ruby/lib/ruby/1.8/ftools.rb:214:in `makedirs'
        from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
        from c:/ruby/lib/ruby/1.8/ftools.rb:214:in `makedirs'
        from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
        from c:/ruby/lib/ruby/1.8/ftools.rb:214:in `makedirs'
        from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
        from c:/ruby/lib/ruby/1.8/ftools.rb:214:in `makedirs'
        from c:/ruby/lib/ruby/1.8/ftools.rb:211:in `makedirs'
        from c:/ruby/lib/ruby/1.8/rdoc/generators/html_generator.rb:1285:in `gen
_into'
        from c:/ruby/lib/ruby/1.8/rdoc/generators/html_generator.rb:1282:in `gen
_into'
        from c:/ruby/lib/ruby/1.8/rdoc/generators/html_generator.rb:1269:in `gen
erate_html'
        from c:/ruby/lib/ruby/1.8/rdoc/generators/html_generator.rb:1190:in `gen
erate'
        from c:/ruby/lib/ruby/1.8/rdoc/rdoc.rb:263:in `document'
        from c:/ruby/bin/rdoc.bat:70

These won't give you the stdlib docs since it can't get RDoc from the C sources you don't have.

Get a source tarball and build from it.

···

On Dec 19, 2006, at 06:15, tesla wrote:

I can't get any output using rdoc on the stdlib. I am using windows 2000 and ruby 1.8.4. from the one-click installer. I have tried:

rdoc c:\ruby\lib -f html --op f:\temp\rubydocs

rdoc c:\ruby\lib -f html -o f:\temp\rubydocs

and

rdoc c:\ruby\lib -f chm -o f:\temp\rubydocs --op rubydocs.chm

--
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net

I LIT YOUR GEM ON FIRE!

tesla wrote:

Hi,

I can't get any output using rdoc on the stdlib. I am using windows 2000 and ruby 1.8.4. from the one-click installer. I have tried:

rdoc c:\ruby\lib -f html --op f:\temp\rubydocs

rdoc c:\ruby\lib -f html -o f:\temp\rubydocs

and

rdoc c:\ruby\lib -f chm -o f:\temp\rubydocs --op rubydocs.chm

With nothing but a long wait to show for the effort. Any help would be appreciated.

thx

-Tesla

I appears to be a bug. Rdoc does not recognize any paths other than root. Given a Drive letter in Windows or Linux it fails. So you can't run on one disk and write to another.

Tesla

tesla wrote:

/ ...

Here's the error code

Generating HTML...
c:/ruby/lib/ruby/1.8/ftools.rb:218:in `mkdir': Invalid argument -
files/c: (Errno::EINVAL)

There is one error. At some point, an argument is generated to make a
directory on the path "files/c:". This is not a valid path.

I know this is no a complete answer, but this stands out as an obvious
error.

···

--
Paul Lutus
http://www.arachnoid.com

Paul Lutus wrote:

tesla wrote:

/ ...

Here's the error code

Generating HTML...
c:/ruby/lib/ruby/1.8/ftools.rb:218:in `mkdir': Invalid argument -
files/c: (Errno::EINVAL)

There is one error. At some point, an argument is generated to make a
directory on the path "files/c:". This is not a valid path.

I know this is no a complete answer, but this stands out as an obvious
error.

I wonder if it's a path separator issue. Perhaps replacing the
backslashes with forward slashes will work.

- - Dan