Re: rdoc windows issues

ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz

*Here is line 8 of c:/ruby/build/ruby/lib/rdoc/rdoc.rb
require ‘rdoc/parsers/parse_rb.rb’

Hm, that .rb can be removed. But I digress.

*Here is line 16 of c:/ruby/build/ruby/lib/rdoc/parsers/parse_rb.rb
require “tracer”

Here is line 27 from c:/ruby/build/ruby/lib/tracer.rb
MY_FILE_NAME = caller(0)[0].scan(/^(.
):[0-9]+$/)[0][0]

Can anyone make heads or tails of whats wrong with my setup?
Thank you!

There’s nothing wrong with your setup. I’d call it a bug.

Change that line to: MY_FILE_NAME = FILE

Looks to me like the MY_FILE_NAME constant should be refactored out of
tracer.rb completely. It doesn’t serve much use.

Regards,

Dan

On 2/15/06, Berger, Daniel [email protected] wrote:
(snip)

*Here is line 8 of c:/ruby/build/ruby/lib/rdoc/rdoc.rb
require ‘rdoc/parsers/parse_rb.rb’

Hm, that .rb can be removed. But I digress.

Do you mean the whole file, or just the extension,
$ ls /c/ruby/build/ruby/lib/rdoc/parsers/parse*

/c/ruby/build/ruby/lib/rdoc/parsers/parse_c.rb
/c/ruby/build/ruby/lib/rdoc/parsers/parse_f95.rb
/c/ruby/build/ruby/lib/rdoc/parsers/parse_rb.rb
/c/ruby/build/ruby/lib/rdoc/parsers/parse_simple.rb
/c/ruby/build/ruby/lib/rdoc/parsers/parserfactory.rb

Looks to me like the MY_FILE_NAME constant should be refactored out of
tracer.rb completely. It doesn’t serve much use.

Thanks for the reply Dan!

(CHANGES SUBJECT TO: Even when things don’t work, change is still good)

$ make install-doc
Generating RDoc documentation
./miniruby.exe ./runruby.rb --extout=.ext – “./bin/rdoc” --all --ri
–op “C:/test_ruby/share/ri/1.8/system” “.”

                        array.c:

c…
bignum.c: c…
class.c
(snip-snip)

Generating RI…
c:/ruby/build/ruby/lib/yaml.rb:9:in require': no such file to load -- stringio (LoadError) from c:/ruby/build/ruby/lib/yaml.rb:9:in (null)’
from c:/ruby/build/ruby/lib/rdoc/ri/ri_descriptions.rb:1:in
(null)' from c:/ruby/build/ruby/lib/rdoc/ri/ri_reader.rb:1:in (null)’
from
c:/ruby/build/ruby/lib/rdoc/generators/ri_generator.rb:46:in
(null)' from c:/ruby/build/ruby/lib/rdoc/rdoc.rb:250:in document’
from ./bin/rdoc:63
make: *** [do-install-doc] Error 1

(CHANGES SUBJECT TO: ri windows issues :wink:

Well… different, and here are the mentioned file lines:

c:/ruby/build/ruby/lib/yaml.rb:9
require 'stringio

c:/ruby/build/ruby/lib/rdoc/ri/ri_descriptions.rb:1
require ‘yaml’

c:/ruby/build/ruby/lib/rdoc/ri/ri_reader.rb:1
require ‘rdoc/ri/ri_descriptions’

c:/ruby/build/ruby/lib/rdoc/generators/ri_generator.rb:46:
require ‘rdoc/ri/ri_reader’

c:/ruby/build/ruby/lib/rdoc/rdoc.rb:250
require gen.file_name

./bin/rdoc:63
r.document(ARGV)

I hope that makes sense to someone.