Open chris-pearce opened 8 years ago
I think this occurs when the syntax is set to CSS instead of SCSS. I was working around this here: https://github.com/kungfusheep/SublimeLinter-contrib-stylelint/issues/15
However, it would probably make sense for the linter to asses the syntax automatically instead of having to define it in the config.
No joy with that I'm afraid, here's the contents of my SublimeLinter-sublime-settings—User
file with "args": ["--syntax", "scss"]
added:
{
"user": {
"debug": true,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"eslint": {
"@disable": false,
"args": [],
"chdir": "${project}",
"excludes": []
},
"scss": {
"@disable": false,
"args": [],
"chdir": "${project}",
"exclude-linter": "",
"excludes": [],
"include-linter": ""
},
"stylelint": {
"@disable": false,
"args": ["--syntax", "scss"],
"chdir": "${project}",
"excludes": []
}
},
"mark_style": "fill",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"php": "html",
"python django": "python"
},
"warning_color": "DDB700",
"wrap_find": true
}
}
Any ideas on this?
I'm experiencing the same issue, and have tried some of the adjustments listed here without much luck. I just noticed this though, and thought I'd share:
// Passes
.black {
// color: #000;
}
// Fails
// .black {
// color: #000;
// }
Any updates on this issue? It's kind of a roadblock.
Not sure if this related to your Sublime plug-in but when I have Sass comments like this:
It throws this error in the console:
Removing the comments and it goes back to working.