csscomb / sublime-csscomb

Sublime plugin for CSScomb—CSS coding style formatter
398 stars 61 forks source link

Not working with .SASS files. #60

Open adonaicandido opened 9 years ago

adonaicandido commented 9 years ago

Using the latest version of SublimeText3 and just installed CSSComb through Package Installer.

My .sass file:

section
    position: absolute
    width: 100%
    height: 100%

    header
        position: absolute
        left: 30vw
        width: 640px

        h1
            font-size: 32px
            font-weight: 700
            letter-spacing: 4px
            &:after
                width: 24px
                height: 4px
                background-color: black
                border: none
                content: ''
                display: block

I hit CTRL+SHIT+C and I get this error:

CSScomb error:

/Users/Adonai/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 #1

1*| section
2 |     position: absolute
3 |     width: 100%

Gonzales PE version: 3.0.0-10
CSScomb Core version: 2.0.2
kevinchevallier commented 8 years ago

This works fine now. Can be marked as solved in my opinion.

jonscottclark commented 8 years ago

If you're pressing CTRL+SHIT+C that might be your problem. Try SHIFT 😆

dortamiguel commented 7 years ago

I'm having the same error