You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably a duplicate but may be worth moving to this issue since I investigated and I expect this has alot more detail. These are all called with issues in the way the code stores scope around mixins/rulesets.
The following errors because ruleset grabs frames for mixin definitions before any further calls. But if you use a call into a ruleset, that will not have evaluated, so the frames property will not be set and it cannot find the variable.
.a {
.b>.c();
}
.b {
@e: true;
.c() {
e: @e;
}
}
To fix this we would have to make the evaling of mixin definitions (and detached rulesets to be consistent though they don't need this) happen across the whole ast before evaluating mixin calls etc.
This would have to be a delicate change and one possibly not worth making (we would have to seperate out creating initial frames / assigning frames to definitions and calling mixins / evaluating nodes etc.)
If we were going to fix this it might be worth fixing the fact that normal rulesets (mixins not defined with ()) do not store frames at all - hence the following bug
And I guess it is also linked to #1316 (at least to consider that when thinking of the fixing way, it looks like it's all the same thing internally after all).
Probably a duplicate but may be worth moving to this issue since I investigated and I expect this has alot more detail. These are all called with issues in the way the code stores scope around mixins/rulesets.
The following errors because ruleset grabs frames for mixin definitions before any further calls. But if you use a call into a ruleset, that will not have evaluated, so the frames property will not be set and it cannot find the variable.
To fix this we would have to make the evaling of mixin definitions (and detached rulesets to be consistent though they don't need this) happen across the whole ast before evaluating mixin calls etc.
This would have to be a delicate change and one possibly not worth making (we would have to seperate out creating initial frames / assigning frames to definitions and calling mixins / evaluating nodes etc.)
If we were going to fix this it might be worth fixing the fact that normal rulesets (mixins not defined with ()) do not store frames at all - hence the following bug
which doesn't occur if you make
a
a mixin definitionThe text was updated successfully, but these errors were encountered: