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:

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