-
Notifications
You must be signed in to change notification settings - Fork 67
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
[scss] Interpolations #68
Comments
Hello, do you know when this issue will be fixed ? Because it prevents me from using SC5 Styleguide Generator on my platform :'( |
@mel0mani4, can you give me a sample code that fails for you, please? It'll help me write a test and fix this issue faster. |
I had this problem by adding KNACSS and Bourbon code in my project. Every interpolated variables inside braces (not as selectors) gave me errors, whether it is the "TypeError: Just try to install Bourbon in your project, and you'll see :)
|
It seems to me gonzales is struggling to understand interpolated property names. See the following SCSS example:
Running this through gonzales throws |
Also running into the issue that @igoratron described. Has anyone looked into it? I'm exploring a fix. |
Pretty sure I found the fix. Will write some tests and submit a PR in the next few days. |
I would like this to be fixed as well. @danoc did you get any further with the fix? |
@karlhorky – Just created a PR with the fix. #80 |
Awesome, thanks! |
Fixed in |
Thanks @tonyganch ! |
Excellent news, @tonyganch! Any idea when this will be released? |
Thanks for all the hard work, @tonyganch! Have you written/spoken about this project? I'd love to learn more about it. |
@tonyganch I'm running the dev branch (currently 3.0.0-31) and I'm seeing the same problem as @igoratron did above. Specifically, the following code produces an error with the same message as Igor's.
You message above implies this should be fixed now. Is there a more recent version than the one I'm using? Many thanks for any help. Further: more digging shows my gonzales-pe/lib/scss/parse.js doesn't have, for example, checkIdentOrInterpolation() whereas gonzales-pe/blob/dev/src/scss/parse.js defines it. |
Same here with 3.0.0-31.
Syntax: scss |
@ivnmaksimovic this is fixed in the latest versions of gonzales-pe .test {
left: calc(50% - #{$logo-width / 2});
}
|
@DanPurdy ok. Thanks. I am using SC5 styleguide, but haven't updated it... |
Interpolations should be parsed correctly almost everywhere when
ident
is ok.csscomb/csscomb.js#271
The text was updated successfully, but these errors were encountered: