-
Notifications
You must be signed in to change notification settings - Fork 467
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
each produces different result than for loop #1723
Comments
Those errors were reported in ezekg/flint#38 and ezekg/flint#40 With libsass 3.3.2 however, I am getting sassc being stuck in a seemingly infinite loop. To reproduce:
It hangs forever until the memory available to the process is exhausted. Would be great to have a smaller test case./ |
Looking at trying to create a test case. I really can't figure out why this is happening. I'll look into it further tonight if I have some time. |
My wild guess this maybe something with passing parameters - optional/rest parameter handling. |
A backtrace while still running:
|
The error message is misleading (I'm guessing it's due to running out of memory). I located the issue and fixed it after some digging around with a simple change: ezekg/flint@59b9159#diff-53d9f7f0f068dabf1ef294b4181ddbcf. I made a costly mistake calling that function twice (it's quite intensive, doing a recursive search attempting to find a matching key inside a potentially large map). I'll try to dig into it more to figure out why it was causing an infinite loop in Libsass and if that change did indeed fix the issue. I just ran your test case above, so I'll run more tomorrow. |
Thanks! WIth flint git master ( ezekg/flint@22aa527dd2321 ) I am getting warnings and the desired output:
Yes, we should try to figure out what went wrong, so I am leaving this open. |
I'll work on fixing those warnings tomorrow. I think I found a few more edge cases in the Libsass compilation that I'm going to look into as well. I'll report back tomorrow. |
@xzyfer, @saper I've been running some additional tests and found this so far: Input (
|
EDIT: Most urgent issue is fixed, but there is still some wrong output for
Input (
test.scss
)Ruby Sass (
sass test.scss
)LibSass (
sassc test.scss
)Hi,
I get some errors if I compile my main.scss file with "gulp-sass".
Contrary to that, compiling using sass -w sass/main.scss:css/main.css doesn't produce any error.
From the error log it seems that "flint-calculate" does not accept content block, but as the Flint developer stated here ezekg/flint#40 , it should be accepting them.
My gulp task:
This is my simple main.scss file:
This is the error I get in the console (I'm using Plumber to catch errors):
The text was updated successfully, but these errors were encountered: