rails rake(3.1)为什么所有rake任务都错误地出现'堆栈级太深'

时间:2011-10-08 16:36:53

标签: ruby-on-rails rake ruby-on-rails-3.1

可能与Rake扩展冲突?

md:~/Dropbox_not_syncd/webs/3/tdd/rubyists$ rake db:drop
/home/durrantm/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/version.rb:4: warning: already initialized constant MAJOR
...
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
/home/durrantm/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.9.2/lib/rake/task_arguments.rb:73: warning: already initialized constant EMPTY_TASK_ARGS
..
rake aborted!
stack level too deep

(See full trace by running task with --trace)

1 个答案:

答案 0 :(得分:0)

我的问题的答案 - 至少他们已经消失,我可以继续 - 是使用
bundle exec rake spec

rake spec

一段时间后......

最终我能够吹走我的rcm或者至少删除所有与rvm相关的文件,然后我可以回去使用'rake spec'等等。虽然我也创建并重新填充了应用程序。< / p>