Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Missing rake dependency produces misleading error

#3749

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.

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

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Ryan Bigg
    Ryan Bigg
    • State changed from new to invalid

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

    June 12th, 2010 @ 03:28 AM

  2. James B. Byrne
    James B. Byrne
    • 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.

    June 12th, 2010 @ 03:38 AM