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
How to Set Default Ruby Version with Rvm
How to Convert a Ruby Hash So That All of Its Keys Are Symbols
Strange Inability to Require Config/Boot After Upgrading to Ruby 1.9.2
How to Alter the Timezone of a Datetime in Ruby
How to Enable C Extension Support in Jruby
Store the Day of the Week and Time
Node.Js Not Found by Rails/Execjs
Uninstall Old Versions of Ruby Gems
Any Success with Sinatra Working Together with Eventmachine Websockets
How to Get Readline Support in Irb Using Rvm on Ubuntu 11.10
Activerecord - Querying Polymorphic Associations
Error: SASS Installation for Windows
Colon (:) Appears as Forward Slash (/) When Creating File Name
How to Save an Object to a File
How to Run Ruby and Git Commands in One Place on Windows
Ruby on Rails Rmagick on Windows 7
Generate a Powerset of a Set Without Keeping a Stack in Erlang or Ruby