Expected: SCSS files should be auto-formatted on save with CSS Comb's config file.
Reality: None of the SCSS files are being formatted, instead this error keeps popping up:
ast.remove is not a function
Hide Stack Trace
TypeError: ast.remove is not a function
at /Users/jw/.atom/packages/atom-beautify/node_modules/csscomb/lib/options/block-indent.js:48:13
at Node.eachFor (/Users/jw/.atom/packages/atom-beautify/node_modules/gonzales-pe/lib/gonzales.js:129:83)
at Object.process (/Users/jw/.atom/packages/atom-beautify/node_modules/csscomb/lib/options/block-indent.js:44:9)
at /Users/jw/.atom/packages/atom-beautify/node_modules/csscomb/lib/core.js:380:14
at Array.forEach (native)
at Comb._processTree (/Users/jw/.atom/packages/atom-beautify/node_modules/csscomb/lib/core.js:379:8)

Started happening since update to atom-beautify 0.29.26.
Gist debug.md: https://gist.github.com/janwerkhoven/6e752cd03505cad8658c8db07a154d41
Related issues: https://github.com/csscomb/csscomb.js/issues/501
I have:
Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issueThis is a bug with CSS Comb and seems to be out of Atom-Beautify's control. You already found the Issue for the bug: https://github.com/csscomb/csscomb.js/issues/501
Once CSS Comb fixes this issue then Atom-Beautify can update the dependency in package.json. However, Atom-Beautify does not actually need to be updated since the dependency for csscomb is a range: https://github.com/Glavin001/atom-beautify/blob/master/package.json#L159
Therefore, you can simply uninstall and reinstall Atom-Beautify to use the latest CSS Comb.
Ok, thanks for heads up. I'll reinstall atom-beautify when resolved.
There are also other supported beautifiers for SCSS you could try out in the mean time: https://github.com/Glavin001/atom-beautify/blob/master/docs/options.md#scss
Thanks, I'm back on Pretty Diff for now.
One good reason for our team to keep using CSS Comb is because of the .csscomb.json config file we can share. Given that not everyone uses Atom, and it exists for Emacs, Node, VIM, Sublime and so on, it's a good one to support!
Is there a way to install an older version of CSS comb?
In the .csscomb.json set "eof-newline": true,.
In .atom/packages/atom-beautify/node_modules/csscomb/lib/options/block-indent.js replace ast.remove(i); with ast.removeChild(i);.