Wednesday, February 18, 2009

Rails 2.2.2 is a lemon

There's one bug that makes my life miserable in all sorts of ways. It's the Catch-22 that you often can't run rake tasks if any of your models fail to compile.
It seems to be a bit of a heisenbug:
http://rails.lighthouseapp.com/projects/8994/tickets/1548-gem-tasks-fail-when-cache_classestrue
http://rails.lighthouseapp.com/projects/8994/tickets/802-eager-load-application-classes-can-block-migration
http://www.redmine.org/issues/show/2441

I've seen it bite me:
  • trying to migrate up fields in the database, while a model was trying to call "alias" on the field

  • trying to automatically install a gem dependency, including while a model was trying to mixin a module from that gem

  • trying to run specs in a plugin when the app it was plugged into had syntax errors in a model


Gaaah.

No comments: