From: Alex Combas Date: 2006-02-16T08:41:21+09:00 Subject: Re: rdoc windows issues On 2/15/06, Berger, Daniel 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 > > *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]> >> 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.> Thanks for the reply Dan! (CHANGES SUBJECT TO: Even when things don't work, change is still good) $ make install-docGenerating 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:63make: *** [do-install-doc] Error 1 (CHANGES SUBJECT TO: ri windows issues ;-) Well... different, and here are the mentioned file lines: c:/ruby/build/ruby/lib/yaml.rb:9require 'stringio c:/ruby/build/ruby/lib/rdoc/ri/ri_descriptions.rb:1require 'yaml' c:/ruby/build/ruby/lib/rdoc/ri/ri_reader.rb:1require '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:250require gen.file_name ./bin/rdoc:63r.document(ARGV) I hope that makes sense to someone. --Alex Combashttp://noodlejunkie.blogspot.com/