[Rubygems-developers] gem problem

aslak hellesoy aslak.hellesoy at gmail.com
Tue Mar 31 10:08:54 EDT 2009


This should probably be made to result in a LoadError. Thoughts?
>

In my case I wasn't trying to load the mojombo-grit gem. The error happened
while scanning all the gems. I don't think scanning a broken gem should
result in a LoadError.

Aslak


>
> On 31 Mar 2009, at 09:10, aslak hellesoy wrote:
>
>
>
> 2009/3/31 Dominic Sisneros <dsisnero at gmail.com>
>
>> I did a gem cleanup and since then I have been getting the following error
>> whenever I try to use a gem
>>
>
> I had the same problem yesterday, when I upgraded all my gems. It turns
> out, this error occurs if you have one broken gem.
> My solution: Add a puts statement inside gem_path_searcher.rb to find out
> what gem is broken. Then uninstall it. (For me it was the latest
> mojombo-grit).
>
> A better solution would be to patch Rubygems so it doesn't choke just
> because you have a broken gem - or at least tell you which one it is.
>
>
>> irb(main):002:0> require 'systemu'
>> NoMethodError: undefined method `join' for nil:NilClass
>>         from
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:96:in
>> `lib_dirs_for'
>>         from
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:26:in
>> `initialize'
>>         from
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:25:in `each'
>>         from
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:25:in
>> `initialize'
>>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:684:in `new'
>>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:684:in `searcher'
>>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:683:in
>> `synchronize'
>>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:683:in `searcher'
>>         from
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34:in `require'
>>         from (irb):2
>> irb(main):003:0> require 'rails'
>> NoMethodError: undefined method `join' for nil:NilClass
>>         from
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:96:in
>> `lib_dirs_for'
>>         from
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:26:in
>> `initialize'
>>         from
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:25:in `each'
>>         from
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:25:in
>> `initialize'
>>
>>
>> Heres my gem env
>>
>> $ gem env
>> RubyGems Environment:
>>   - RUBYGEMS VERSION: 1.3.1
>>   - RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
>>   - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8
>>   - RUBY EXECUTABLE: c:/ruby/bin/ruby.exe
>>   - EXECUTABLE DIRECTORY: c:/ruby/bin
>>   - RUBYGEMS PLATFORMS:
>>     - ruby
>>     - x86-mswin32-60
>>   - GEM PATHS:
>>      - c:/ruby/lib/ruby/gems/1.8
>>      - c:/Documents and Settings/dominic e sisneros/My
>> Documents/.gem/ruby/1.8
>>   - GEM CONFIGURATION:
>>      - :update_sources => true
>>      - :verbose => true
>>      - :benchmark => false
>>      - :backtrace => false
>>      - :bulk_threshold => 1000
>>      - :sources => ["http://gems.rubyforge.org", "
>> http://gems.rubyonrails.org", "http://gems.github.com/"]
>>   - REMOTE SOURCES:
>>      - http://gems.rubyforge.org
>>      - http://gems.rubyonrails.org
>>      - http://gems.github.com/
>>
>>
>> _______________________________________________
>> Rubygems-developers mailing list
>> Rubygems-developers at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rubygems-developers
>>
>
>
>
> --
> Aslak (::)
> _______________________________________________
> Rubygems-developers mailing list
> Rubygems-developers at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rubygems-developers
>
>
>
> _______________________________________________
> Rubygems-developers mailing list
> Rubygems-developers at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rubygems-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rubygems-developers/attachments/20090331/5302dd92/attachment-0001.html>


More information about the Rubygems-developers mailing list