How to switch to sassc from sass

44 views
Skip to first unread message

benedik...@gmail.com

unread,
Oct 17, 2020, 8:03:25 AM10/17/20
to nanoc
Hi,
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'
end
```
3. nanoc.yaml:
```
text_extensions
: [ '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.
Best,
Benedikt

```
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)
```





benedik...@gmail.com

unread,
Oct 17, 2020, 8:23:44 AM10/17/20
to nanoc
Addendum:
I have found the discussion at https://github.com/nanoc/features/issues/45, and the code at https://gist.github.com/jarrodldavis/72d450c636ffed67a0a8a3c31d261387.
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'
end
```
What would I need to replace that by?

Thanks for your patience :-)

Denis Defreyne

unread,
Oct 17, 2020, 10:12:54 AM10/17/20
to na...@googlegroups.com
Hey Benedikt,

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

Denis
--
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 nanoc+un...@googlegroups.com.

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


Reply all
Reply to author
Forward
0 new messages