richthegeek / phpsass

A compiler for SASS/SCSS written in PHP, brought up to date (approx 3.2) from a fork of PHamlP: http://code.google.com/p/phamlp/
http://phpsass.com/
382 stars 83 forks source link

Endless recursion errors #127

Open ghost opened 11 years ago

ghost commented 11 years ago

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 commented 8 years ago

Please close this issue, the fix was already merged.