Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rake aborted! stack level too deep [duplicate]

Possible Duplicate:
Rails 3.0 & Ruby 1.9.2rc: Rake commands return 'already initialized constant' & stack level too deep errors. Any ideas

Am using Ruby version 1.9.1 on windows vista. Am getting the rake aborted error for any rake commands am using. This does not happen in all my app folder. Its happening only on a specific app folder.

C:\rails_project\stunetwork>rake db:reset
(in C:/rails_project/stunetwork)
rake aborted!
stack level too deep
C:/Ruby191/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rak
efile'
(See full trace by running task with --trace)
like image 606
arun Avatar asked Aug 11 '10 07:08

arun


2 Answers

You need to update your gem. I met this error with gem '1.8.10', and fixed by upgrading to 1.8.16

gem update --system

like image 101
Rocky Avatar answered Nov 08 '22 20:11

Rocky


try placing bundle exec in front of the rake command.

bundle exec rake -T
like image 20
dewil_de Avatar answered Nov 08 '22 20:11

dewil_de