Vizjerai
Vizjerai

Reputation: 1972

What does error occurred while evaluating nil.dependencies mean?

I'm running ruby on rails v2.2.2 and when I run rake gems I get this error.

$ rake gems --trace
- [I] settingslogic
rake aborted!
You have a nil object when you didn't expect it!
The error occured while evaluating nil.dependencies

/vendor/rails/railities/lib/rails/gem_dependency.rb:77:in `dependencies'

Upvotes: 3

Views: 1372

Answers (3)

srboisvert
srboisvert

Reputation: 12749

There is a bit more detail here with two alternate workarounds -add one line to the dependency code in rails or -specify gem dependencies before the gem

Upvotes: 0

Vizjerai
Vizjerai

Reputation: 1972

I figured out what was going on. There is a bug in the core rake gems function where it assumed there were specifications for the gem and would error out when it didn't exist for that gem.

Here is the ticket for this issue with a working patch http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1464

Upvotes: 3

Luke
Luke

Reputation: 4441

Could be a problem with a gem it's trying to load, or your setup of required gems. Check config/environment.rb for any odd-looking config.gem lines, and do an update of all your gems (sudo gem update).

Upvotes: 0

Related Questions