Problem while installing rdoc-2.4.1 under Ruby 1.9.1

Discussion in 'Ruby' started by Ruby Student, Mar 16, 2009.

  1. Ruby Student

    Ruby Student Guest

    [Note: parts of this message were removed to make it a legal post.]

    Hello team!

    While installing, via gem, rdo-2.4.1 I ran into an error.
    Please see bellow.


    C:\>ruby -v
    ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32]


    C:\>gem install rdoc
    Successfully installed rdoc-2.4.1
    1 gem installed
    Installing ri documentation for rdoc-2.4.1...
    Updating ri class cache with 1261 classes...
    Installing RDoc documentation for rdoc-2.4.1...
    ERROR: While executing gem ... (TypeError)
    can't convert Pathname into String
    C:\>

    Any suggestions?

    Thank you
    --
    Ruby Student
     
    Ruby Student, Mar 16, 2009
    #1
    1. Advertising

  2. Ruby Student

    Eric Hodel Guest

    On Mar 16, 2009, at 11:05, Ruby Student wrote:
    > C:\>gem install rdoc
    > Successfully installed rdoc-2.4.1
    > 1 gem installed
    > Installing ri documentation for rdoc-2.4.1...
    > Updating ri class cache with 1261 classes...
    > Installing RDoc documentation for rdoc-2.4.1...
    > ERROR: While executing gem ... (TypeError)
    > can't convert Pathname into String
    > C:\>
    >
    > Any suggestions?


    What does gem install rdoc --backtrace say?

    RDoc was installed, but documentation was not generated :/
     
    Eric Hodel, Mar 16, 2009
    #2
    1. Advertising

  3. Ruby Student

    Ruby Student Guest

    [Note: parts of this message were removed to make it a legal post.]

    On Mon, Mar 16, 2009 at 2:52 PM, Eric Hodel <> wrote:

    > On Mar 16, 2009, at 11:05, Ruby Student wrote:
    >
    >> C:\>gem install rdoc
    >> Successfully installed rdoc-2.4.1
    >> 1 gem installed
    >> Installing ri documentation for rdoc-2.4.1...
    >> Updating ri class cache with 1261 classes...
    >> Installing RDoc documentation for rdoc-2.4.1...
    >> ERROR: While executing gem ... (TypeError)
    >> can't convert Pathname into String
    >> C:\>
    >>
    >> Any suggestions?
    >>

    >
    > What does gem install rdoc --backtrace say?
    >
    > RDoc was installed, but documentation was not generated :/
    >
    >

    Eric, this is what I get when I add the --backtrace option:

    C:\>gem install rdoc --backtrace
    Successfully installed rdoc-2.4.1
    1 gem installed
    Installing ri documentation for rdoc-2.4.1...
    Updating ri class cache with 1380 classes...
    Installing RDoc documentation for rdoc-2.4.1...
    ERROR: While executing gem ... (TypeError)
    can't convert Pathname into String

    C:/ruby/lib/ruby/gems/1.9.1/gems/rdoc-2.4.1/lib/rdoc/generator/darkfish.rb:158:in
    `[]'

    C:/ruby/lib/ruby/gems/1.9.1/gems/rdoc-2.4.1/lib/rdoc/generator/darkfish.rb:158:in
    `write_style_sheet'

    C:/ruby/lib/ruby/gems/1.9.1/gems/rdoc-2.4.1/lib/rdoc/generator/darkfish.rb:184:in
    `generate'
    C:/ruby/lib/ruby/gems/1.9.1/gems/rdoc-2.4.1/lib/rdoc/rdoc.rb:310:in
    `document'
    C:/ruby/lib/ruby/1.9.1/rubygems/doc_manager.rb:161:in `run_rdoc'
    C:/ruby/lib/ruby/1.9.1/rubygems/doc_manager.rb:130:in `install_rdoc'
    C:/ruby/lib/ruby/1.9.1/rubygems/doc_manager.rb:115:in
    `generate_rdoc'
    C:/ruby/lib/ruby/1.9.1/rubygems/commands/install_command.rb:128:in
    `block in execute'
    C:/ruby/lib/ruby/1.9.1/rubygems/commands/install_command.rb:127:in
    `each'
    C:/ruby/lib/ruby/1.9.1/rubygems/commands/install_command.rb:127:in
    `execute'
    C:/ruby/lib/ruby/1.9.1/rubygems/command.rb:136:in `invoke'
    C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:105:in
    `process_args'
    C:/ruby/lib/ruby/1.9.1/rubygems/command_manager.rb:75:in `run'
    C:/ruby/lib/ruby/1.9.1/rubygems/gem_runner.rb:39:in `run'
    C:/ruby/bin/gem.bat:32:in `<main>'
    Any idea?

    --
    Ruby Student
     
    Ruby Student, Mar 16, 2009
    #3
  4. Ruby Student

    Eric Hodel Guest

    On Mar 16, 2009, at 12:10, Ruby Student wrote:
    > On Mon, Mar 16, 2009 at 2:52 PM, Eric Hodel <>
    > wrote:
    >> On Mar 16, 2009, at 11:05, Ruby Student wrote:
    >>
    >>> C:\>gem install rdoc
    >>> Successfully installed rdoc-2.4.1
    >>> 1 gem installed
    >>> Installing ri documentation for rdoc-2.4.1...
    >>> Updating ri class cache with 1261 classes...
    >>> Installing RDoc documentation for rdoc-2.4.1...
    >>> ERROR: While executing gem ... (TypeError)
    >>> can't convert Pathname into String
    >>> C:\>
    >>>
    >>> Any suggestions?
    >>>

    >>
    >> What does gem install rdoc --backtrace say?
    >>
    >> RDoc was installed, but documentation was not generated :/
    >>
    >>

    > Eric, this is what I get when I add the --backtrace option:
    >
    > C:\>gem install rdoc --backtrace
    > Successfully installed rdoc-2.4.1
    > 1 gem installed
    > Installing ri documentation for rdoc-2.4.1...
    > Updating ri class cache with 1380 classes...
    > Installing RDoc documentation for rdoc-2.4.1...
    > ERROR: While executing gem ... (TypeError)
    > can't convert Pathname into String
    >
    > C:/ruby/lib/ruby/gems/1.9.1/gems/rdoc-2.4.1/lib/rdoc/generator/
    > darkfish.rb:158:in
    > `[]'
    >
    > C:/ruby/lib/ruby/gems/1.9.1/gems/rdoc-2.4.1/lib/rdoc/generator/
    > darkfish.rb:158:in
    > `write_style_sheet'
    >
    > Any idea?



    I'm not going to have time to look at it just yet, but can you file a
    bug for me?

    http://rubyforge.org/tracker/?func=add&group_id=627&atid=2472

    please include ruby -v and the un-snipped backtrace from above
     
    Eric Hodel, Mar 17, 2009
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Schwarz
    Replies:
    6
    Views:
    278
    Randy W. Sims
    Jan 1, 2004
  2. Brian Schröder
    Replies:
    5
    Views:
    161
    Dave Thomas
    Sep 18, 2004
  3. Daniel Berger
    Replies:
    1
    Views:
    156
    Dave Thomas
    Nov 2, 2004
  4. Iwan van der Kleyn

    rdoc: how to add readme.rdoc as index.html?

    Iwan van der Kleyn, Apr 26, 2005, in forum: Ruby
    Replies:
    1
    Views:
    261
    Stefan Lang
    Apr 26, 2005
  5. Patrick Li
    Replies:
    1
    Views:
    126
    Patrick Li
    Aug 24, 2008
Loading...

Share This Page