Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

fatal issue #1500

Closed
wyattdanger opened this issue Oct 24, 2011 · 4 comments · Fixed by #1543
Closed

fatal issue #1500

wyattdanger opened this issue Oct 24, 2011 · 4 comments · Fixed by #1543
Assignees
Milestone

Comments

@wyattdanger
Copy link

Ran into this while trying out 1.1.rc locally

➜  bundle -v
Bundler version 1.1.rc
➜ bundle install --path=vendor/bundle
Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find rake (>= 0.8.1) amongst [] (Gem::LoadError)
  from /Library/Ruby/Site/1.8/rubygems/specification.rb:451:in `find_in_unresolved'
  from /Library/Ruby/Site/1.8/rubygems/specification.rb:451:in `map'
  from /Library/Ruby/Site/1.8/rubygems/specification.rb:451:in `find_in_unresolved'
  from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:43:in `require'
  from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/definition.rb:1
  from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler.rb:144:in `definition'
  from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/cli.rb:219:in `install'
  from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:in `send'
  from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:in `run'
  from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
  from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor.rb:263:in `dispatch'
  from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor/base.rb:386:in `start'
  from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/bin/bundle:13
  from /usr/bin/bundle:19:in `load'
  from /usr/bin/bundle:19
@indirect
Copy link
Member

Please provide the info requested in ISSUES. Thanks.

On Oct 24, 2011, at 4:07 AM, Stephen Wyatt Bushreply@reply.github.com wrote:

Ran into this while trying out 1.1.rc locally

➜ bundle -v
Bundler version 1.1.rc
➜ bundle install --path=vendor/bundle
Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in to_specs': Could not find rake (>= 0.8.1) amongst [] (Gem::LoadError) from /Library/Ruby/Site/1.8/rubygems/specification.rb:451:infind_in_unresolved'
from /Library/Ruby/Site/1.8/rubygems/specification.rb:451:in map' from /Library/Ruby/Site/1.8/rubygems/specification.rb:451:infind_in_unresolved'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:43:in require' from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/definition.rb:1 from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler.rb:144:indefinition'
from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/cli.rb:219:in install' from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:insend'
from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:in run' from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor/invocation.rb:118:ininvoke_task'
from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor.rb:263:in dispatch' from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/lib/bundler/vendor/thor/base.rb:386:instart'
from /Library/Ruby/Gems/1.8/gems/bundler-1.1.rc/bin/bundle:13
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19

Reply to this email directly or view it on GitHub:
#1500

@hone hone reopened this Nov 18, 2011
@ghost ghost assigned hone Nov 18, 2011
hone added a commit that referenced this issue Nov 18, 2011
@mpapis
Copy link

mpapis commented Nov 18, 2011

replacing Gem.load_plugins with Gem.load_env_plugins allowed me to still use rubygems plugins while preventing the error to appear - using this to include the plugins in Gemfile:

group :never do
  gem "rubygems-bundler"
end

everyone willing to use a gem that provides plugins will have to include it in Gemfile, it seams reasonable solution, allowing to use rubygems plugins while not breaking bundler.

hone added a commit that referenced this issue Nov 18, 2011
@hone
Copy link
Contributor

hone commented Nov 30, 2011

@indirect merged this in already.

@hone hone closed this as completed Nov 30, 2011
@tpope
Copy link
Contributor

tpope commented Jan 30, 2012

Adding a gem to the Gemfile does not, as is suggested, enable Gem.load_env_plugins to find it. Gem.load_env_plugins looks at $RUBYLIB only.

I do not (yet) have a solution for this, other than a messy compromise of rescuing any exceptions from Gem.load_plugins.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants