"Stack Level Too Deep" Running Rake Db:Create:All

rake aborted! stack level too deep

try placing bundle exec in front of the rake command.

bundle exec rake -T

Rails: rake db:migrate - stack level too deep

Okay,
I tried everything, rake db:reset, deleting all migrations, and so on...

The problem was a gem. scrubyt gem in my gemfile caused all this trouble...

stack level too deep error when running any rake task

Found the problem: in some tasks, we have ActionView::Helpers included (to use number_to_currency, for example), and that is what's causing the stack level too deep error.

This also happens when you create a brand new app and a single .rake file with include ActionView::Helpers. I'll open an issue on Ruby on Rails about that.

stack level too deep - when using Rake

Updating OSX is known to give issues in rubies, you should recompile all your rubies:

chown -R $USER: $rvm_path
rvm get head
rvm reinstall 1.9.3-p125
rvm all-gesmsets do rvm gemset pristine

Also note that any other compiled stuff like libraries needs recompilation, this includes homebrew, macports, rvm pkg and any packages you have compiled manually.

Stack Level Too Deep Error In Rails

I ended up fixing it by renaming the request method to request_mentor because it was causing the infinite loop.



Related Topics



Leave a reply



Submit