This project is archived and is in readonly mode.

#3749 ✓invalid
James B. Byrne

Missing rake dependency produces misleading error

Reported by James B. Byrne | January 19th, 2010 @ 05:12 PM

Running Rails with the required version of Rack missing results in this error:

Missing the Rails 2.3.3 gem. Please `gem install -v=2.3.3 rails`, 
update your RAILS_GEM_VERSION setting in config/environment.rb 
for the Rails version you do have installed, or comment out 
RAILS_GEM_VERSION to use the latest version installed.

This makes no mention of Rack and, given that the appropriate version of Rails is already present and therefore the message given makes no sense whatsoever, obscures the root cause of the difficulty. This in turn delays identifying and remedying the actual defect.

Comments and changes to this ticket

  • Ryan Bigg

    Ryan Bigg June 12th, 2010 @ 03:28 AM

    • State changed from “new” to “invalid”

    Rack is a dependency of Rails and will be included when the rails gem is installed.

  • James B. Byrne

    James B. Byrne June 12th, 2010 @ 03:38 AM

    • Tag cleared.

    I think that you miss the point here. Rack is a separate gem and not just a dependency. When rack was updated via gem update then the version number change in rake broke rails dependency on a specific version of rack. However, the error message actually generated stated that the rails gem was missing, when it was not, and said nothing about the rack version dependency in rails which was the actual problem.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages