jimweirich/rake — Issue #98: stack level too deep with rails 3.1.3
Author: alexeymuranov
Created: 2011-12-21 20:39:11+00:00
State: open

Can you help me debug this?

```shell
[alexey:rails_tests]$ rails new test_app
...
[alexey:rails_tests]$ cd test_app
[alexey:test_app]$ rake test
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:2: warning: already initialized constant VERSION
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MAJOR
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MINOR
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant BUILD
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant PATCH
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/version.rb:6: warning: already initialized constant NUMBERS
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake.rb:27: warning: already initialized constant RAKEVERSION
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/early_time.rb:17: warning: already initialized constant EARLY
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/application.rb:31: warning: already initialized constant DEFAULT_RAKEFILES
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/task_arguments.rb:77: warning: already initialized constant EMPTY_TASK_ARGS
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:16: warning: already initialized constant DEFAULT
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/dsl_definition.rb:150: warning: already initialized constant DeprecatedCommands
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake.rb:68: warning: already initialized constant FileList
/Volumes/Data/Users/alexey/.rvm/gems/ruby-1.9.3-p0@global/gems/rake-0.9.2.2/lib/rake.rb:69: warning: already initialized constant RakeFileUtils
rake aborted!
stack level too deep

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

This is the minimal example i've found, i have actually got it in a rails application i am working on. This is strange because i though i've already run `rake test` on that app...