rails/sass-rails — Issue #78: Stack level too deep error in 3.1.5
Author: kendagriff
Created: 2011-12-15 13:53:30+00:00
State: open

Hi,

I'm not sure which mix of gems triggers the problem, but downgrading from 3.1.5 to 3.1.4 fixes it. Here's list of relevant gems, and a stack trace:

#### Gemfile

```
gem 'rails', '3.1.3'
gem 'bson', '1.4.0'
gem 'bson_ext', '1.4.0'
gem 'jquery-rails'
gem 'eco'

group :assets do
gem "compass", :git => "git://github.com/chriseppstein/compass.git", :tag => "v0.12.alpha.2"
gem 'sass-rails', :git => 'git://github.com/rails/sass-rails.git', :branch => '3-1-stable'
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
gem 'oily_png'
end
```

#### Trace

```

** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/kendallbuchanan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby /Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke tmp:cache:clear (first_time)
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
stack level too deep
(in /Users/kendallbuchanan/Repositories/education/app/assets/stylesheets/admins/index.css.scss)
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/task.rb:162
Tasks: TOP => assets:precompile:primary
rake aborted!
Command failed with status (1): [/Users/kendallbuchanan/.rvm/rubies/ruby-1....]
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/bundler/gems/rails-df932c4ae229/actionpack/lib/sprockets/assets.rake:9:in `ruby_rake_task'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/bundler/gems/rails-df932c4ae229/actionpack/lib/sprockets/assets.rake:17:in `invoke_or_reboot_rake_task'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/bundler/gems/rails-df932c4ae229/actionpack/lib/sprockets/assets.rake:25:in `block (2 levels) in '
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/kendallbuchanan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/gems/rake-0.9.2.2/bin/rake:33:in `'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/bin/rake:19:in `load'
/Users/kendallbuchanan/.rvm/gems/ruby-1.9.2-p290@support/bin/rake:19:in `

'
Tasks: TOP => assets:precompile
```

**Additional note:** If I tinker with the stylesheet that has causes the error, it'll simply appear in another stylesheet. Again, downgrading to 3.1.4 appears to fix it.