-
Notifications
You must be signed in to change notification settings - Fork 534
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
Parent slectors #295
Comments
That's an issue in gonzales-pe 3.0.0 beta which we haven't upgraded to yet, we've left sass-lint on a previous version of gonzales which doesn't have that issue. The block you posted is parsing fine when I test it see my screenshot below. Is there any reason why you're using sass-lint v1.0.0 rather than the latest v1.2.3? There must be something else wrong with your file. Is the file using tabs? |
Strangely enough 3.0.0-31 is earlier than 3.0.0-beta so we aren't quite there yet and it is an earlier version, trust me, we've been testing it a lot! Also I think you need to update your grunt-sass-lint plugin It's definitely using old dependencies. The latest version of grunt-sass-lint will install the latest version of sass-lint starting at 1.2.0 see here |
Also we just released 1.3.0 so if you reinstall or update your dependencies for grunt-sass-lint you should get the latest and greatest. |
I just tried |
Yeah, you're right, it looks like even though the grunt package was updated it hasn't been published to NPM or something... I'll file this as an issue over there. |
in the mean time if you manually edit the package.json within grunt-sass-lint to 1.3.0 and updates it's modules manually.. And also files that use tabs rather than spaces currently don't work correctly so that will be your main issue.. We're just waiting for gonzales to update properly and fix all of it's bugs. see here #62 |
That was my next thought, force it into submission. I did that and ran
Heresy! 😉 I changed the test file to spaces and it all looks to be working OK now. The project I wanted to try this on uses tabs though, so we'll just have to stick with scss-lint for the time being. It's our only remaining Ruby dependency, so I'm looking forward to sass-lint. Thanks for the help! |
I know ha! It's not our fault! ;) as soon as the AST is stable and released we'll be looking to update and get all that tabby goodness out! Yeah removing the last remaining ruby dependency was the motivation for me to work on this too! |
@fStop grunt-sass-lint has been updated on npm now so if you do choose to move over it should pull in the latest 1.* version now. I'll close this issue if you don't mind as it's tab related, hopefully you'll be using sass-lint soon! |
Nice! Thanks for the update. |
@DanPurdy, hi! Could you please-please test the latest gonzales with tabs? I added tab support a day ago and though a few tests are green, I would love someone to try it with real examples. |
sass-lint v1.0.0
For the following .scss file (test file with just this in it):
I get this error:
This happens anywhere a
&
parent selector is used, and it appears to be a problem with Gonzales PE: tonyganch/gonzales-pe#96The text was updated successfully, but these errors were encountered: