Ruby 1.9.0 warnings

Discussion in 'Ruby' started by Suraj Kurapati, Mar 2, 2008.

  1. Hello,

    It pains me to see Ruby warnings originating from code in the standard
    Ruby distribution. It seems some developers of the Ruby standard
    libraries do not run Ruby with the "-w" option (or do not set their
    RUBYOPT environment variable to "-w").

    So let us bring these atrocities(!) to their attention by posting (to
    this thread) any warnings we see originating from the Ruby 1.9.0 code
    base.

    To start us off, here are some warnings I see when running irb 1.9.0:

    $ irb
    /lib/ruby/1.9.0/irb/context.rb:167: warning: method redefined;
    discarding old irb_name
    /lib/ruby/1.9.0/irb/completion.rb:165: warning: shadowing outer local
    variable - m
    /lib/ruby/1.9.0/irb/ext/save-history.rb:32: warning: method redefined;
    discarding old save_history=
    >> RUBY_VERSION

    => "1.9.0"
    >> ENV['RUBYOPT']

    => "-w"

    Thanks for your consideration.
    --
    Posted via http://www.ruby-forum.com/.
    Suraj Kurapati, Mar 2, 2008
    #1
    1. Advertising

  2. In rdoc:

    /lib/ruby/1.9.0/rdoc/code_objects.rb:239: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/code_objects.rb:283: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/code_objects.rb:286: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/code_objects.rb:500: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/code_objects.rb:512: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/generators/html_generator.rb:1122: warning:
    instance variable @viewer not initialized
    /lib/ruby/1.9.0/rdoc/generators/html_generator.rb:371: warning: instance
    variable @comment not initialized
    /lib/ruby/1.9.0/rdoc/generators/html_generator.rb:458: warning: instance
    variable @viewer not initialized
    /lib/ruby/1.9.0/rdoc/generators/html_generator.rb:473: warning: instance
    variable @src_url not initialized
    /lib/ruby/1.9.0/rdoc/generators/html_generator.rb:502: warning: instance
    variable @section not initialized
    /lib/ruby/1.9.0/rdoc/generators/html_generator.rb:515: warning: instance
    variable @section not initialized
    /lib/ruby/1.9.0/rdoc/generators/html_generator.rb:558: warning: instance
    variable @viewer not initialized
    /lib/ruby/1.9.0/rdoc/generators/html_generator.rb:695: warning: instance
    variable @comment not initialized
    /lib/ruby/1.9.0/rdoc/markup/simple_markup/inline.rb:249: warning: global
    variable `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/markup/simple_markup/inline.rb:254: warning: global
    variable `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/markup/simple_markup/inline.rb:259: warning: global
    variable `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/markup/simple_markup/inline.rb:287: warning: global
    variable `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1669: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1676: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1683: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1694: warning: instance
    variable @extra_accessors not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1713: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1714: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:1849: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2017: warning: instance
    variable @params not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2045: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2101: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2172: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2254: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2289: warning: instance
    variable @params not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2563: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:2601: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:26: warning: global variable
    `$DEBUG_RDOC' not initialized
    /lib/ruby/1.9.0/rdoc/parsers/parse_rb.rb:547: warning: global variable
    `$DEBUG_RDOC' not initialized
    --
    Posted via http://www.ruby-forum.com/.
    Suraj Kurapati, Mar 2, 2008
    #2
    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. Chris Pine

    Ruby Warnings

    Chris Pine, Feb 12, 2004, in forum: Ruby
    Replies:
    2
    Views:
    93
    Mauricio Fernández
    Feb 12, 2004
  2. Daniel Berger

    Ruby 1.8.1 and forwardable warnings

    Daniel Berger, Mar 5, 2004, in forum: Ruby
    Replies:
    1
    Views:
    91
  3. Kurt V. Hindenburg

    Ruby + yaml = warnings???

    Kurt V. Hindenburg, Dec 12, 2005, in forum: Ruby
    Replies:
    3
    Views:
    187
    Edwin van Leeuwen
    Dec 12, 2005
  4. Asfand Yar Qazi
    Replies:
    1
    Views:
    144
    Florian Groß
    Mar 19, 2006
  5. Ted Sung
    Replies:
    1
    Views:
    292
    Sherm Pendley
    Aug 30, 2004
Loading...

Share This Page