Project

General

Profile

Actions

Bug #7204

closed

gem check -a crashes with Exception `NameError' uninitialized constant Gem::Commands::CheckCommand AND Exception `NoMethodError' undefined method `add'

Added by davidderyldowney (David Deryl Downey) about 12 years ago. Updated about 12 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin11.4.2]
Backport:
[ruby-core:48141]

Description

When running the command: gem check -a

It crashes on OSX with

Exception `NameError' at /Users/me/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:177 - uninitialized constant Gem::Commands::CheckCommand

and

Exception NoMethodError' at /Users/me/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems.rb:732 - undefined method add' for "/Users/me/.rvm/gems/ruby-1.9.3-p286@global/cache":String
ERROR: While executing gem ... (NoMethodError)
undefined method `add' for "/Users/me/.rvm/gems/ruby-1.9.3-p286@global/cache":String

** This bug can be reproduced in Ruby 1.8 as well as JRuby implementation.

I don't believe this is a problem created by RVM but I have to report its use since its in the mix as well.
This is reproducible using RVM under all installed rubies using the command: 'rvm all do gem check -a'
This error was reproduced with all installed rubies. These are:

rvm rubies

jruby-1.6.8 [ x86_64 ]
jruby-1.7.0.RC1 [ x86_64 ]
ruby-1.8.7-p370 [ i686 ]
ruby-1.9.2-p320 [ x86_64 ]
ruby-1.9.3-head [ x86_64 ]
ruby-1.9.3-p125 [ x86_64 ]
ruby-1.9.3-p194 [ x86_64 ]
=* ruby-1.9.3-p286 [ x86_64 ]


Files

gistfile.txt (36.8 KB) gistfile.txt Output from 'gem check -a --debug --backtrace' davidderyldowney (David Deryl Downey), 10/22/2012 05:28 AM

Updated by davidderyldowney (David Deryl Downey) about 12 years ago

I have cross-filed with RubyGems here: https://github.com/rubygems/rubygems/issues/387

I am not sure the area of responsibility, so please forgive the cross filing. I believe this goes against Ruby itself, but am unsure so crossfiled.

Actions #2

Updated by nobu (Nobuyoshi Nakada) about 12 years ago

  • Status changed from Open to Third Party's Issue
Actions

Also available in: Atom PDF

Like0
Like0Like0