Let's start by saying this is a difficult issue to report on. I filed it with the foundation-sites folks and they're pretty confident it's a bug in sassc. I'm no ruby expert but I think that there's no situation under which this library should take more than 50Gb of memory so hopefully I can find a home for this issue without too much back and forth.
What should happen?
When I use jekyll to build the scss for foundation-sites the the memory consumption swells to 50+Gb unless I comment out a chunk of the @mixin foundation-button-group
When I comment out these lines it works. I'm not really a SASS expert so I don't know what to suggest. I only found this by commenting out everything and bringing things back until it compiled.
Let's start by saying this is a difficult issue to report on. I filed it with the
foundation-sites
folks and they're pretty confident it's a bug insassc
. I'm no ruby expert but I think that there's no situation under which this library should take more than 50Gb of memory so hopefully I can find a home for this issue without too much back and forth.What should happen?
When I use
jekyll
to build the scss for foundation-sites the the memory consumption swells to 50+Gb unless I comment out a chunk of the@mixin foundation-button-group
When I comment out these lines it works. I'm not really a SASS expert so I don't know what to suggest. I only found this by commenting out everything and bringing things back until it compiled.
My Environment:
OSX 10.15.4 Ruby:
ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-darwin18]
Foundation installed with NPM, copied over to Jekyll's
_sass
folder.Compiling SCSS using jekyll 4.0 and sassc
From my
Gemfile.lock
Reproducing
I've got a repo that shows the problem here (dev branch):
https://github.com/Riverscapes/riverscapes-jekyll-theme/tree/dev
Repro steps:
bundle install
bundle exec jekyll server --verbose
Watch memory consumption go BOOM!