0

I'm using the bootstrap-sass gem. With these instructions https://github.com/twbs/bootstrap-sass#usage Things work ok except when I want to add a new stylesheet.

application.css.scss

@import "bourbon";
@import "custom";
@import "users";
@import "font-awesome";
@import "comments";
@import "animations";

directory structure

▾ stylesheets/
    animations.css
    application.css.scss
    classifieds.css.scss
    comments.css.scss
    custom.css.scss
    foo.css.scss
    news.css.scss
    relationships.css.scss
    scaffolds.css.scss
    users.css.scss

But if I add foo.css.scss to /stylesheets/ and add @import 'foo' to application.css.scss

I get a wrong number of arguments (2 for 1) (in app/assets/stylesheets/application.css.scss) error

What could I be doing wrong?

Harry Moreno
  • 10,231
  • 7
  • 64
  • 116
  • The error is happening without `@import "bootstrap"`? – glebm Feb 05 '14 at 21:48
  • Which version of sass-rails are you using? See https://github.com/rails/rails/issues/4151 – steakchaser Feb 05 '14 at 21:51
  • @glebm I think the delinquent gem is [sass-rails-source-maps](https://github.com/vhyza/sass-rails-source-maps) here's a stacktrace https://gist.github.com/8834018 and I tried removing the gem and things work correctly. It seems to create a list of css files for the project and any deviation from that invalidates the local application.css – Harry Moreno Feb 05 '14 at 21:59
  • @glebm my `@import "bootstrap";` declaration is inside `custom.css.scss` – Harry Moreno Feb 05 '14 at 22:18
  • For the issue with sass-rails-source-maps: a demo app would be best. Specify the exact command(s) to run in the demo's github repository to reproduce the issue. – glebm Feb 06 '14 at 01:06

1 Answers1

1

it seems sass gem changed number of arguments of Sass::Importers::Base#public_url.

New version of sass-rails-source-maps should resolve this.

vhyza
  • 1,030
  • 6
  • 9