How to switch to sassc from sass

Skip to first unread message

Oct 17, 2020, 8:03:25 AM10/17/20
to nanoc
I am using CI on gitlab for my website. The log says that `sass` is end-of-life, and that I should switch to `sassc`. Unfortunately, I don't know how to do that.

I have replaced `sass` by `sassc` in
1. Gemfile
2. Rules
compile '/stylesheet.sass' do
   filter :sassc
   write @item.identifier.without_ext + '.css'
3. nanoc.yaml:
: [ 'coffee', 'css', 'erb', 'haml', 'handlebars', 'hb', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'ms', 'mustache', 'php', 'rb', 'sassc', 'scss', 'txt', 'xhtml', 'xml' ]

Is there anything else I need to change?
The error message is below.

Thanks a lot for your help.

Fetching sassc 2.4.0
Installing sassc 2.4.0 with native extensions
Bundle complete! 6 Gemfile dependencies, 38 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
$ bundle exec nanoc
Loading site… done
Captain! We’ve been hit!
Nanoc::Core::Filter::UnknownFilterError: The requested filter, “sassc”, does not exist.
0. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/filter.rb:74:in `named!'
1. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/item_rep_builder.rb:46:in `block in snapshot_defs_for'
2. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/action_sequence.rb:49:in `block in each'
3. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/action_sequence.rb:49:in `each'
4. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/action_sequence.rb:49:in `each'
5. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/item_rep_builder.rb:39:in `snapshot_defs_for'
6. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/item_rep_builder.rb:28:in `block in run'
7. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/item_rep_repo.rb:28:in `each'
8. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/item_rep_repo.rb:28:in `each'
9. /usr/local/bundle/gems/nanoc-core-4.11.19/lib/nanoc/core/item_rep_builder.rb:27:in `run'
... 43 lines omitted (see crash.log for details)

Oct 17, 2020, 8:23:44 AM10/17/20
to nanoc
I have found the discussion at, and the code at
I do not understand how much of this code I need to switch to `sassc`, and where to put that code. Is there an explanation for dummies? From what I understand, the only use of `sass` is in the compilation of my stylesheet in
compile '/stylesheet.sass' do
   filter :sass
   write @item.identifier.without_ext + '.css'
What would I need to replace that by?

Thanks for your patience :-)

Denis Defreyne

Oct 17, 2020, 10:12:54 AM10/17/20
Hey Benedikt,

I’ve left a comment in the GitHub discussion. Let me know how it works for you!

You received this message because you are subscribed to the Google Groups "nanoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to

Denis Defreyne
[dəˈni] • pronouns: he/him

Reply all
Reply to author
0 new messages