sstephenson / sprockets

Rack-based asset packaging system
2.55k stars 24 forks source link

Error compiling CSS asset with 2.12.2 #651

Closed marioschubert closed 9 years ago

marioschubert commented 10 years ago

Hello,

I am getting the following error in the browser (chrome and firefox) after upgrade from 2.11.0 to 2.12.2. If I roll back upgrade it works:

ArgumentError: wrong number of arguments (2 for 1)
   (in /home/user/.rvm/gems/ruby-2.1.2/gems/nprogress-rails-0.1.6.3/app/assets/stylesheets/nprogress.css.scss)
/home/user/.rvm/gems/ruby-2.1.2/gems/sass-3.4.6/lib/sass/importers/filesystem.rb:14:in `initialize'

Any clue what's going wrong?

Thank you for your help.

Best regards Mario

josh commented 10 years ago

Running latest sprockets and sass?

If your using https://github.com/rails/sass-rails, its likely to be a bug in that library. If not, then don't worry.

marioschubert commented 10 years ago

My working gems. sprockets is pinned in Gemfile to 2.11.0: Using sass 3.4.6 Using sprockets 2.11.0 Using sprockets-rails 2.0.1 Using sass-rails 4.0.1

If I unpin sprockets, I get version 2.12.2, and I get the errors above.

severin commented 10 years ago

+1 same for me

dima4p commented 10 years ago
sass (3.4.7) lib/sass/importers/filesystem.rb:14:in `initialize'
sprockets (2.12.3) lib/sprockets/sass_importer.rb:11:in `initialize'
compass-rails (2.0.1) lib/compass-rails/patches/sass_importer.rb:12:in `new'

So the bug is obvious I think. It was introduced at version 2.12.0 after 2.11.3

doomspork commented 9 years ago

I can confirm what @dima4p stated above, everything works on 2.11.3 and is broken on 2.12 for me.

josh commented 9 years ago

https://github.com/rails/sass-rails/commit/fa0175e3ed4c18dd3cbe2120267df5d7cfcd2998