Self-referenced variables definition causes generic Stack Overflow error #972

Closed
Ragnarokkr opened this Issue Oct 6, 2012 · 0 comments

Comments

Projects
None yet
2 participants

I think to have found a minor issue. When I define (due to a mistake of mine) a variable that self-references, for example

@bodyColor: darken(@bodyColor, 30%);

the lessc compiler generates a generic exception error

stack_overflowError: Maximum call stack size exceeded in filename:null:-1

with no useful indications about where I can find the error. I guess it could be useful to introduce a further check and, in case of self-referencing, the compiler could generate an error like:

Self-reference error: variable @bodyColor cannot reference to itself in filename:line:col

@lukeapage lukeapage closed this in 6ec8560 Oct 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment