Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong number of arguments (2 for 1) in site.sass #155

Closed
deanpcmad opened this issue Apr 6, 2014 · 39 comments
Closed

wrong number of arguments (2 for 1) in site.sass #155

deanpcmad opened this issue Apr 6, 2014 · 39 comments

Comments

@deanpcmad
Copy link

When the compass-rails gem is installed in my Rails 4.0.4 application I get wrong number of arguments (2 for 1) on all of my sass files. When removing the gem, the site works properly.

@craigmcnamara
Copy link
Member

Without more details I can't accept this as a bug report. What commands are you running to get that error, is it during Rails runtime or a rake task? If you can provide those and any other details we can look at the problem. Send a gist, I'd be glad to help.

@glaszig
Copy link

glaszig commented Apr 7, 2014

just had the same problem after ugrading Starve from rails 4.1 rc1 to rc2. the problem was that i had not updated sass-rails, compass-rails (and coffee-rails). after that, things went well again.

@scottdavis
Copy link
Member

Can someone please post a full stack trace

@scottdavis scottdavis reopened this Apr 7, 2014
@glaszig
Copy link

glaszig commented Apr 7, 2014

rails 4.1.0.rc2
ruby 2.1.0

$ rake assets:clean assets:precompile --trace
** Invoke assets:clean (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Execute assets:clean
** Invoke assets:precompile (first_time)
** Invoke assets:environment
** Execute assets:precompile
rake aborted!
ArgumentError: wrong number of arguments (2 for 1)
  (in /Library/WebServer/Documents/starve/app/assets/stylesheets/admin/application.css.scss)
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sass-3.2.14/lib/sass/importers/filesystem.rb:16:in `initialize'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/sass_importer.rb:11:in `initialize'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/compass-rails-1.1.3/lib/compass-rails/patches/sass_importer.rb:7:in `new'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/compass-rails-1.1.3/lib/compass-rails/patches/sass_importer.rb:7:in `block in evaluate'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/compass-rails-1.1.3/lib/compass-rails/patches/sass_importer.rb:7:in `map'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/compass-rails-1.1.3/lib/compass-rails/patches/sass_importer.rb:7:in `evaluate'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/context.rb:197:in `block in evaluate'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/context.rb:194:in `each'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/context.rb:194:in `evaluate'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/processed_asset.rb:12:in `initialize'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:374:in `new'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:374:in `block in build_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:395:in `circular_call_protection'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:373:in `build_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:94:in `block in build_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/caching.rb:58:in `cache_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:93:in `build_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:287:in `find_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:61:in `find_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/bundled_asset.rb:16:in `initialize'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:377:in `new'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:377:in `build_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:94:in `block in build_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/caching.rb:58:in `cache_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:93:in `build_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:287:in `find_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:61:in `find_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:211:in `block in find_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:257:in `benchmark'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:210:in `find_asset'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:119:in `block in compile'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:118:in `each'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:118:in `compile'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-2.12.0/lib/rake/sprocketstask.rb:146:in `with_logger'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:240:in `call'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:240:in `block in execute'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:235:in `each'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:235:in `execute'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/task.rb:165:in `invoke'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:150:in `invoke_task'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `each'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:106:in `block in top_level'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:115:in `run_with_threads'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:100:in `top_level'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:78:in `block in run'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/martin/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rake-10.2.2/lib/rake/application.rb:75:in `run'
bin/rake:4:in `<main>'
Tasks: TOP => assets:precompile

@deanpcmad
Copy link
Author

I had to play around to get it to work and now I can't get it to go wrong but in order for another gem to work I had to set the sprockets gem to 2.11.0 and I think that has fixed the problem on one of my apps.
This is a Rails 4.0.4 app on Ruby 2.0.0 in development and Ruby 2.1.1 in production

Here's the stacktrace from when I was deploying it before though:

wrong number of arguments (2 for 1)
  (in /app/app/assets/stylesheets/brm.sass)
/app/vendor/bundle/ruby/2.1.0/gems/sass-3.2.19/lib/sass/importers/filesystem.rb:16:in `initialize'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/sass_importer.rb:11:in `initialize'
/app/vendor/bundle/ruby/2.1.0/gems/compass-rails-1.1.6/lib/compass-rails/patches/sass_importer.rb:7:in `new'
/app/vendor/bundle/ruby/2.1.0/gems/compass-rails-1.1.6/lib/compass-rails/patches/sass_importer.rb:7:in `block in evaluate'
/app/vendor/bundle/ruby/2.1.0/gems/compass-rails-1.1.6/lib/compass-rails/patches/sass_importer.rb:7:in `map'
/app/vendor/bundle/ruby/2.1.0/gems/compass-rails-1.1.6/lib/compass-rails/patches/sass_importer.rb:7:in `evaluate'
/app/vendor/bundle/ruby/2.1.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/context.rb:197:in `block in evaluate'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/context.rb:194:in `each'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/context.rb:194:in `evaluate'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/processed_asset.rb:12:in `initialize'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:374:in `new'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:374:in `block in build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:395:in `circular_call_protection'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:373:in `build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:94:in `block in build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/caching.rb:58:in `cache_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:93:in `build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:287:in `find_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:61:in `find_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/processed_asset.rb:111:in `block in resolve_dependencies'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/processed_asset.rb:105:in `each'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/processed_asset.rb:105:in `resolve_dependencies'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/processed_asset.rb:97:in `build_required_assets'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/processed_asset.rb:16:in `initialize'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:374:in `new'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:374:in `block in build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:395:in `circular_call_protection'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:373:in `build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:94:in `block in build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/caching.rb:58:in `cache_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:93:in `build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:287:in `find_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:61:in `find_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/bundled_asset.rb:16:in `initialize'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:377:in `new'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:377:in `build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:94:in `block in build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/caching.rb:58:in `cache_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:93:in `build_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/base.rb:287:in `find_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/index.rb:61:in `find_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:211:in `block in find_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:257:in `benchmark'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:210:in `find_asset'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:119:in `block in compile'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:118:in `each'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/sprockets/manifest.rb:118:in `compile'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-2.12.0/lib/rake/sprocketstask.rb:146:in `with_logger'
/app/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

@glaszig
Copy link

glaszig commented Apr 7, 2014

alright. although the exception was the same, the issue for me really was an outdated sass-rails version.

-    sass-rails (4.0.1)
+    sass-rails (4.0.3)
       railties (>= 4.0.0, < 5.0)
-      sass (>= 3.1.10)
-      sprockets-rails (~> 2.0.0)
+      sass (~> 3.2.0)
+      sprockets (~> 2.8, <= 2.11.0)
+      sprockets-rails (~> 2.0)

@Silex
Copy link

Silex commented Apr 8, 2014

Same error here. What's worse is that I can't install sass-rails 4.0.3 because it conflicts with thecompass` 1.0.0.alpha I'm trying to use.

@Silex
Copy link

Silex commented Apr 8, 2014

Okay, by manually forcing sprocket to 2.11.0 it started to work again.

@deanpcmad
Copy link
Author

Yep that's what worked for me with an issue I had with another gem

--- Original Message ---

From: "Philippe Vaucher" notifications@github.com
Sent: 8 April 2014 11:09
To: "Compass/compass-rails" compass-rails@noreply.github.com
Cc: "Dean Perry" dean@deanperry.net
Subject: Re: [compass-rails] wrong number of arguments (2 for 1) in site.sass (#155)

Okay, by manually forcing sprocket to 2.11.0 it started to work again.


Reply to this email directly or view it on GitHub:
#155 (comment)

@mperham
Copy link

mperham commented Apr 11, 2014

Same error here. The issue is in the patches in compass-rails.

@craigmcnamara
Copy link
Member

Has anyone come up with a patch? I'll take a pull request, otherwise I'll probably have time mid-week to get this investigated.

@rafaelrinaldi
Copy link

The workaround for me was the same as @glaszig's. Bumped up sass-rails to 4.0.3.

@Silex
Copy link

Silex commented Apr 14, 2014

The real problem is sprockets which needs to be 2.11.0. By me upgrading sass-rails installed sprocket 2.12.0 which failed.

@dmitry
Copy link

dmitry commented May 4, 2014

#159

@Silex
Copy link

Silex commented May 27, 2014

For some reason just specifying gem 'compass-rails' installed 1.1.6 by me. Forcing it to 1.1.7 solved all the problems.

@Silex
Copy link

Silex commented Oct 17, 2014

I upgraded all my gems and I suffer from this again. I think it's related to sstephenson/sprockets#540

The thing that now seems to fix it is gem 'sass-rails', '4.0.3'

@deanpcmad
Copy link
Author

Yep, yet again I've got this error too... 👎

@brentmulligan
Copy link

I was having the same problem but was able to correct by specifying gem 'sprockets', '2.11.0'

@yoyos
Copy link

yoyos commented Nov 20, 2014

gem 'sass-rails', '~> 4.0.2'
solved my problem

@manuelmeurer
Copy link

I had to use sprockets 2.11.0 and sprockets-rails 2.0.1 to get this resolved.

@daniel-nelson
Copy link

Downgrading sprockets isn't solving this issue for me. For now, I've switched to using Bourbon for the mixins, but so many Susy tutorials and add-ons (eg: at-breakpoint) require Compass that I keep coming back to this and spending a couple hours trying to get it to work. The relevant Gemfile declarations:

gem 'compass-rails', '2.0.1'
gem 'sass-rails', '~> 5.0.0'
gem 'sprockets', '2.11.0'
gem 'sprockets-rails', '2.0.1'
gem 'susy', '~> 2.1.3'

@vanboom
Copy link

vanboom commented Dec 17, 2014

It's back... on my upgrade to rails 4.1.8...

wrong number of arguments (2 for 1) in application.scss

I'm using
compass-rails-2.0.1
sass-rails-5.0.0
sprockets-2.12.3
sprockets-rails-2.2.2

I have not specified any specific versions in my Gemfile.

After I remove compass from my Gemfile, the error goes away. Too bad this issue has lingered so long.

@bwilkn
Copy link

bwilkn commented Dec 18, 2014

I have the same issue and setup as vanboom (without specifying sprocket). Commenting out compass works.

@almozavr
Copy link

Seems like gem 'sass-rails', '4.0.3' the only solution worked for me.

@almozavr
Copy link

Locking sass and sprockets (which locks compass to 0.12.7) helps.
The snippet:

...
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
gem 'sass', '3.2.19' # compass 1.0 breaks something out with newer one
gem 'sprockets', '2.11.0' # compass 1.0 breaks something out with newer one
# Compass and fonts for better CSS
gem 'compass-rails', '~> 2.0'
...

@deanpcmad
Copy link
Author

Looks like this bug is back with Rails 4.2.0 & sass-rails 5.0. Fixing sass-rails to 4.0.3 works, thanks @almozavr

@danlo
Copy link

danlo commented Dec 21, 2014

+1 found similar bug

COMMAND LINE:

spring rake assets:precompile
rake aborted!
ArgumentError: wrong number of arguments (2 for 1)
  (in [censored]/embeddable.sass)
-e:1:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

FILE: embeddable.sass

// [Comment ]

@import     "_lib/__manifest"

@danlo
Copy link

danlo commented Dec 22, 2014

See issue #195

@nicolasiensen
Copy link

I fixed this problem with:

gem 'sass-rails', '~> 4.0.2'
gem 'sass', '3.2.19'
gem 'sprockets', '2.11.0'
gem 'sprockets-rails', '2.0.1'
gem 'compass-rails', '~> 2.0'

But now I can't update foundation-rails cause it depends on newer sass-rails versions.

@nacengineer
Copy link

i think one issue is the subtlety that compass-rails -v 2.0.0 has a dependency on compass -v 0.12.2 and 2.0.1 which according to semver, as I understand it, shouldn't break that dependency. But it does as compass-rails -v 2.0.1 has a dependency on compass -v 1.0.0

I would recommend compass-rails 2.0.1 be yanked and re-versioned as compass-rails 2.1.0

FWIW my app works with these gems

gem 'sass-rails', '> 4.0.5'
gem 'sass', '3.2.19'
gem 'sprockets', '2.11.3'
gem 'sprockets-rails', '2.2.2'
gem 'compass-rails', '
> 2.0.0'

@Pjero
Copy link

Pjero commented Jan 3, 2015

I've just installed this:

gem "compass-rails", github: "Compass/compass-rails", branch: "master"

and it works.

found it here: #195

@nickstamas
Copy link

+1 @Pjero

@LeBenLeBen
Copy link

+1, using compass-rails on master fix the issue with Rails 4.1.8 and sass-rails 5.0.1, thanks @Pjero

@craigmcnamara
Copy link
Member

Use version 2.0.2 it has what you need.

@kakipo
Copy link

kakipo commented Apr 1, 2015

I've got the same problem after bundle update.
I don't know what the exactly problems is, but the following combination fixed it.

* compass-rails (2.0.4)
* sass-rails (5.0.1)
* sprockets (2.12.3)
* sprockets-rails (2.2.4)

You can specify gem versions in your Gemfile like:

gem 'sass-rails', '~> 5.0'
gem 'compass-rails', '~> 2.0.4'

See: Ruby's Pessimistic Operator

Hope it helps.

@macgill4444
Copy link

Thank you guys so much. I had a similar problem and @Pjero worked for me. THANK YOU!

@westonganger
Copy link

+1 @Pjero

@askuratovsky
Copy link

@kakipo thank you!
working combination of gem versions:

gem 'sass-rails', '~> 5.0'
gem 'compass-rails', '~> 2.0.4'

@boriscy
Copy link

boriscy commented Jun 4, 2015

@kakipo thank you!
working combination of gem versions:

gem 'sass-rails', '> 5.0'
gem 'compass-rails', '
> 2.0.4'

atz added a commit to sul-dlss-deprecated/bassi_veratti that referenced this issue Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests