Skip to content
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

Endless recursion errors #127

Open
ghost opened this issue Aug 23, 2013 · 1 comment
Open

Endless recursion errors #127

ghost opened this issue Aug 23, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 23, 2013

trying to compile the https://github.com/jlong/sass-bootstrap (twitter bootstrap 3) is giving me the following error:
Fatal error: Uncaught exception 'SassContextException' with message 'Undefined Mixin: container-fixed: ....
scss/bootstrap/_grid.scss::4
Source: .container' in ..../phpsass/tree/SassContext.php:102
Stack trace:
#0 .../phpsass/tree/SassMixinNode.php(63): SassContext->getMixin('container-fixed')

This seems to be because of some kind of recursion error.

if I print_r the $this->mixins like so:

public function getMixin($name)
{
if (isset($this->mixins[$name])) {
return $this->mixins[$name];
} elseif (!empty($this->parent)) {
return $this->parent->getMixin($name);
}
print_r($this->mixins);
throw new SassContextException('Undefined Mixin: ' . $name, $this->node);
}

I get endless recursion, I don't think it's an issue with sass-bootstrap as it compiles ok on ruby.

Can someone help me?
Thanks very much indeed, great work!

@joejoseph00
Copy link
Collaborator

joejoseph00 commented Aug 22, 2016

Please close this issue, the fix was already merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant