-
Notifications
You must be signed in to change notification settings - Fork 92
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
Setting "selector-no-redundant-nesting-selector" to true causes FATAL error #266
Comments
Thanks! This error has probably something to do with your setup rather than |
Thank you for your feedback, that's annoying actually, I could hardly imagine how my setup would interfer with this switch option which barely seems to check legitimate use of |
@stphane If you upload your project somewhere where I can access it, I can have a look to see if I manage to reproduce the error. |
Thank you for proposing but I cannot expose this project publicly |
Alright. Just let me know if you find any reason why the error happens. For now I don't think that there is much that I can do to help. :) |
I have come across this error too, but even with the setting in question turned off. It has been fixed in the 0.5.0 release candidate, but there is no final release just yet. |
From my investigations I narrowed it down to this rule: |
@rtibbles Thanks a lot for investigating why the error happens. I'll try to see if I manage reproduce the error on my machine. |
One other useful thing to note, is that I only triggered this when linting somewhere on the order of 200+ files (and maintaining reference to each file by wrapping all calls to stylelint in a |
I think that when postcss-selector-parser v5.0.0 gets released, we can upgrade to it and see if that fixes this issue. |
@rtibbles, you might try making a branch/fork of this repo and update postcss-selector-parser to pull in the latest release candidate of postcss-selector-parser, v5.0.0-rc.4, and see if that resolves the issue. I haven't been able to reproduce the noted memory issue. |
I just stopped using the rule I identified above, and that stopped me getting the memory issues, so I am not in an urgent rush to fix this! |
Ok, that is understandable. I don't have a reproducible test case, so likewise, I am not in an urgent rush to fix this. |
This should now be fixed in v3.4.4. If it's not fixed yet, let's re-open this issue. https://github.com/kristerkari/stylelint-scss/releases/tag/3.4.4 |
Setting option
scss/selector-no-redundant-nesting-selector: true
in .stylelintrc.js causes:While running:
webpack-dev-server --env.env dev --env.isLocal true --progress --inline --port=8080 --watch --hot
Using
└─┬ stylelint-scss@3.2.0
. └── postcss-selector-parser@4.0.0
The text was updated successfully, but these errors were encountered: