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) over 11 years ago. Updated over 11 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
Actions

Also available in: Atom PDF

Like0
Like0Like0