-
Notifications
You must be signed in to change notification settings - Fork 60
csscomb not working for .scss files #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does ST detects file syntax correctly? |
(whatever that means :P ) |
Check only syntax file name, regardless parent directory. See #7.
Thanks, that helped a lot :) |
Fantastic, glad to be of service to such an epic tool! |
Sorry but I belive this wasn't fixed. I'm getting the following error while trying to sort SCSS files:
It can be a problem with the csscomb itself so please let me know if I should report it to the other tracker. I think the following block might be the problem although is a valid scss block:
|
@paramburu, interpolated variables, yes. |
Thanks. But, may I ask you why is it that the web interface doesn't complaint? |
@paramburu, because the website is soooo outdated and "Online sorting" still uses php version :) |
For me the problem persists, no msg in the console when I run CSScomb on sass. Syntax is 'Packages/Syntax Highlighting for Sass/Syntaxes/SCSS.tmLanguage', but fixing it, as suggested in d30446d doesn't help. |
I am also having issues with SCSS. Nothing happens, no exceptions in the console, just doesn't do anything. Works fine with css. |
Was having the same problem as tombpain. The reason was that my Sublime syntax was set to Sass instead of SCSS. Installing the SCSS syntax solved the problem. |
@DavidBachmann Fantastic, thanks, worked perfectly. |
Suddenly CSS comb stopped working for me, too. I'm using the |
For all those getting this error:Step 1: Open Packages/CSScomb/CSScomb.py def is_scss(self):
return self.view.settings().get('syntax').endswith('/SCSS.tmLanguage') and def is_sass(self):
return self.view.settings().get('syntax').endswith('/Sass.tmLanguage') Step 4: Under "def get_syntax(self):", add: if self.is_sass():
return 'scss' CSScomb should now work in both Sass and SCSS syntaxes |
worked very well with sass / SCSS, but now ...
|
@felipeduardo same results for me too |
Can confirm that @Marcel-Robitaille fix works and I like Sass highlighting a lot more than SCSS one. So should be fixed IMO. Installed CSScomb today from Package Control but still experience this. |
@felipeduardo had the same issue, the problem is with weird defaults, should be: |
No fix for this? Followed steps above and am getting no sorting at all; just getting the spacing issue @felipeduardo is getting. Would be great to see this getting sorted – have been having these issues for a long time now |
Bump! I miss CSS Comb :-( |
bump. |
bump |
+1 |
I'm not sure if this was it, but building out my config file with explicit sort order seemed to fix things for me. I'm guessing that relying on the default settings for this just wasn't working with sass/scss. |
I've now gotten it to process most of my scss files fine, but it's throwing an error ("Please check the validity...") for this: @for $i from 0 through 2 {
.pie-slice._#{$i} path,
.dc-legend .dc-legend-item:nth-child(#{$i + 1}) rect {
fill: darken($teal, $i * 10);
}
} It appears to be choking on interpolating |
@ixley, I think you were missing a braket there: @for $i from 0 through 2 {
.pie-slice._#{$i} .path,
.dc-legend .dc-legend-item:nth-child(#{$i + 1}) rect {
fill: darken($teal, $i * 10);
}
} |
@gangsthub Thanks for catching that –I'm not sure why that bracket didn't get pasted in above (I've updated the snippet in my comment), but it is correctly formed and not the cause of the error. Like I mentioned, it appears to not like something about that specific interpolation string with the +1. |
font: 400 #{$base-font-size + 3px}/#{$base-btn-line-height} $base-font-family; |
having the same problem here... gonzales is failing while parsing the interpolated valuse in this snippet:
|
I had the same issue. What worked for me is installing SCSS Sublime Package before running csscomb and adding
Package Settins > CSScomb > Settings - User |
I've installed csscomb js into sublime 3 and ctrl+shift+c (or tools>run csscomb js) works fine for .css files but seemingly does nothing (and no console message) within an .scss file.
I know it should work fine with sass because I've used the previous versions with no problems.
It's as if the package only loads for .css files and not others. I wouldn't mind if it loaded for every file type.
Thanks in advance.
The text was updated successfully, but these errors were encountered: