Skip to content


Subversion checkout URL

You can clone with
Download ZIP


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

Ragnarokkr opened this Issue · 0 comments

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.