sublime-csscomb icon indicating copy to clipboard operation
sublime-csscomb copied to clipboard

Throws exception if extended class contains "-" in its name (SCSS)

Open sh-a-a opened this issue 11 years ago • 4 comments
trafficstars

.paper
{
    @extend .row;
    @extend .small-12;
    position: relative;
   //...
}

will cause:

core.js:412
            throw e;
                  ^

Please check the validity of the block starting from line #848
846 | {
847 |     @extend .row;
848*|     @extend .small-12;

sh-a-a avatar Sep 08 '14 15:09 sh-a-a

I have a similar issue (see error below) but it seems skip a placeholder selector called %module-border-bottom, which is a 30 lines above the one it fails on

/Users/RichB/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/node_modules/csscomb-core/lib/core.js:412 throw e; ^

Please check the validity of the block starting from line #95

93 | } 94 | .module-border-bottom { 95*| @extend %module-border-bottom-variant-1; 96 | } 97 | }

Gonzales PE version: 3.0.0-10 CSScomb Core version: 2.0.2

rjbultitude avatar Feb 18 '15 12:02 rjbultitude

+1

marcio avatar Apr 28 '15 14:04 marcio

+1

piton13 avatar May 17 '15 15:05 piton13

Any movement on this? This pretty much makes CSSComb worthless for combing SASS.

AaronAmstutz avatar Jun 09 '16 19:06 AaronAmstutz