-
Notifications
You must be signed in to change notification settings - Fork 533
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
"Root level" !global
flag throws "Please check validity of the block" error
#305
Comments
Looking at the error this may be a problem with the AST we use to parse, there's an upcoming release scheduled that should fix a few of the problems but I'll look into it to make sure. Error codes and a slightly more graceful way of handling errors is definitely on the cards for 1.4.0 at the moment. |
Can confirm that it's an issue with the AST #56 Can also confirm that it's fixed in the latest beta, so once we implement v3 of gonazles-pe global flags will be support |
Similar issue with |
Yep, can confirm and recent beta of gonzales-pe has support for |
Same issue here. |
started to use sass-lint and also ran into this error. sass-lint: |
Hi @nirazul I'm afraid we're still just waiting for our AST to update a little bit more and then we'll be getting support for this out and about. |
sounds great, i'm looking forward to using it :) |
@DanPurdy Can you point at the issue in sass-lint queue where "updating gonzales-pe AST" is being worked on? I'd like to track that issue directly rather than this and the many other bugs that are caused by the current, buggy version of the AST. I searched the queue but couldn't find an issue. |
@JohnAlbin there isn't one issue I'm afraid, we don't maintain Gonzales ourselves and it's not clear at the moment when we'll see any further progress with it. We've been running all of our tests and every issue that's been raised directly against the new builds of gonzales whenever there's a release but unfortunately it's just not stable enough for us to make the move at the moment. |
Thanks for the info, @DanPurdy! |
I have a few lines with calculations and variables in my SCSS file, and those throw this error as well.
|
@matkovsky This is a "bad" solution for now, but I've found that using |
Hi guys, Any news on this? Not being able to use |
Very shortly once #495 is complete |
This has been fixed in 1.6, as well as |
Starting to use sass-lint for the first time & hitting an error.
Here's my system stats
sass-lint
: 1.3.0gulp-sass-lint
: 1.0.1gulp
: 3.9.0npm
: 2.11.2OS X 10.11 El Capitan
Get this error message when I run in it:
Here's the Sass source in that
block starting from line #108
in_settings.scss
:And here's my Gulp task running this process:
Finally, here's sass-lint.yml in case that's helpful:
After I removed all the
!global
flags, sass-lint worked wonderfully. Which makes sense: that part of_settings.scss
is using!global
the wrong way. Those vars are already global since they're not in a block. Someone probably meant!default
. If it's possible, I'd prefer sass-lint tell us we're using it wrongly, not error out.The text was updated successfully, but these errors were encountered: