[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: rdoc windows issues

Berger, Daniel

2/15/2006 11:05:00 PM

> -----Original Message-----
> From: Alex Combas [mailto:alex.combas@gmail.com]
> Sent: Wednesday, February 15, 2006 2:43 PM
> To: ruby-talk ML
> Subject: rdoc windows issues
>
>
> Here is a more detailed description of what is wrong with
> rdoc I'm trying to build ruby from source using the
> stable-snapshot from here:
> ftp://ftp.ruby-lang.org/pub/ruby/stable-snaps...

<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







1 Answer

Alex Combas

2/15/2006 11:41:00 PM

0

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> > *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 'stringioc:/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.blo...