phpsass icon indicating copy to clipboard operation
phpsass copied to clipboard

Endless recursion errors

Open ghost opened this issue 12 years ago • 1 comments
trafficstars

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!

ghost avatar Aug 23 '13 16:08 ghost

Please close this issue, the fix was already merged.

joejoseph00 avatar Aug 22 '16 14:08 joejoseph00