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 - 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.
rake aborted! stack level too deep while deploying to Heroku
I was truly desperate so I asked another question. Apparently this is caused by sass and downgrading to sass-rails v3.1.4 v3.2.5 will make it work.
ROR: rake aborted! stack level too deep
'bundle exec rake db:migrate' was working for me in a similar situation, but it didn't seem "right".
I found 'rvm implode' to be the cleanest method for myself (though likely overkill). My problems arose sometime after upgrading to OS X Lion, when some gems no longer appeared to be installed.
rvm implode. reinstall rvm. install ruby. install rails. bundle install.
rake db:migrate worked again without prefacing it with bundle exec.
side note: I'd be curious to know more about what actually is going on here. I presume its a conflict with different versions of the same gem being installed? But I couldn't find any detailed logging that pointed towards a specific direction.
Rake error: Stack level too deep
You should specifically add Rake version >= 0.9.2 in your Gemfile!
There was a bug with some Rails 3 versions where you would see strange errors like this when you use an older Rake version.
In your Gemfile:
gem 'rake' , '>= 0.9.2'
I'd also recommend you create a new gemset specifically for your application, e.g.
rvm gemset create yourproject
rvm gemset use yourproject
or:
rvm gemset use yourproject --default
for the new gemset, you might have to add "gem install rake" manually, then run "bundle install"
Using a separate gemset in addition to using your Gemfile is the best way to keep your gem versions in your project stable, and decoupled from other projects.
rake aborted! stack level too deep while deploying to Heroku
I was truly desperate so I asked another question. Apparently this is caused by sass and downgrading to sass-rails v3.1.4 v3.2.5 will make it work.
Related Topics
/Usr/Bin/Env Ruby_Noexec_Wrapper Fails with No File or Directory
Rails: How to Check If a Column Has a Value
Exception_Notification for Delayed_Job
Using Activemodel::Serializer in Rails - JSON Data Differs Between JSON and Index Response
Rails Devise - Current_User Is Nil
How to Convert Utf8 Combined Characters into Single Utf8 Characters in Ruby
What Are the Steps Needed to Create and Publish a Rubygem of Your Own
Ruby -V Dyld: Library Not Loaded: /Usr/Local/Lib/Libgmp.10.Dylib
Is It a Good Idea to Purge Old Rails Migration Files
Recommended Two-Way Encryption Gems for Ruby
Is There a Gem That Normalizes and Format Us Phone Numbers in Ruby
How to Reference a Method in Another Ruby Code File
Specifying Content Type in Rspec
Ruby Google_Drive Gem Oauth2 Saving