Forum: Ruby Re: rdoc windows issues

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F3b7b8756d0c7f71cc7460cc33aefaee?d=identicon&s=25 Berger, Daniel (Guest)
on 2006-02-16 00:06
(Received via mailing list)
> ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz
<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.

> *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
622fa8560c82dfaa59c91ec75efb0c19?d=identicon&s=25 Alex Combas (Guest)
on 2006-02-16 00:42
(Received via mailing list)
On 2/15/06, Berger, Daniel <Daniel.Berger@qwest.com> 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 ;-)


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.
This topic is locked and can not be replied to.