padrino/padrino-framework — Issue #763: 'Stack level too deep' instead of pointing out the real issue.
Author: fbernier
Created: 2012-01-21 15:52:12+00:00
State: open

I've hit quite a couple of 'stack level too deep errors' while building a padrino app, which don't help you in any way to debug the problem.

For example, if I change the database adapter and make a typo in it's name, I get the following error:

/home/fbernier/.rvm/gems/ruby-1.9.3-p0@atom/bin/padrino:19: stack level too deep (SystemStackError)

Nothing else. Sometime I was making a couple of changes and hitting this error, so I have to rollback everything one by one to finally find out it was a typo in the database adapter name...

It has also happened in other situations than the database adapter, but I can't remember.

It would be nice to at least have a stack trace, which I can't seem to get.