Project

General

Profile

Bug #7204

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

Added by davidderyldowney (David Deryl Downey) almost 7 years ago. Updated almost 7 years ago.

Status:
Third Party's Issue
Priority:
Normal
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 methodadd' 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

History

Updated by davidderyldowney (David Deryl Downey) almost 7 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.

#2

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

  • Status changed from Open to Third Party's Issue

Also available in: Atom PDF