sass-rails: Stack level too deep error in 3.1.5
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 <top (required)>'
/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 `<top (required)>'
/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 `<main>'
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.
About this issue
- Original URL
- State: closed
- Created 13 years ago
- Comments: 19 (3 by maintainers)
Links to this issue
Commits related to this issue
- Correctly enable the asset pipeline * Add the Rails 3.1+ Bundler.require statement to config/application.rb (properly enabling the :assets group) * Move handlebars_assets gem into the :assets group... — committed to stevenh512/diaspora by stevenh512 12 years ago
- Asset pipeline fixes * On deployment precompile assets after the configs get copied * Downgrade sass-rails to 3.1.4 since enabling the :assets group exposed a known bug in sass-rails ~> 3.1.5 [rail... — committed to AmurSU/taurus by Envek 12 years ago
- Correctly enable the asset pipeline * Add the Rails 3.1+ Bundler.require statement to config/application.rb (properly enabling the :assets group) * Move handlebars_assets gem into the :assets group... — committed to diaspora/diaspora by stevenh512 12 years ago
- Force sass-rails version (see rails/sass-rails#78) — committed to asilano/free-dom by asilano 12 years ago
@jipiboily, @nat, @jfeldstein You can now switch to the latest rails version (3.2.8) and the latest sass-rails (3.2.5) safely but with a single hiccup.
You will go from the previous
to the new error
This issue is mentioned here https://github.com/gregbell/active_admin/issues/474 and is easily fixed with this single line of code on config/application.rb: