I encountered an issue while compiling my less file with ST2. I have configured the following plugins:
LESS
LESS build
SublimeOnSaveBuild
less2css
The code I am attempting to compile is as follows:
.generate-columns(4);
.generate-columns(@n, @i: 1) when (@i =< @n) {
.column-@{i} {
width: (@i * 100% / @n);
}
.generate-columns(@n, (@i + 1));
}
However, I encountered this error:
Expected ')' but found ' ' on line 8 in file '......\public\css\prueba.less':
[7]: }
[8]: .generate-columns(@n, (@i + 1));
----------------------------^
[9]: }
[Done - Failed]
[Finished in 0.2s with exit code -5]
You can find the original example from Less official website here:
If anyone could provide assistance, it would be greatly appreciated. Could this be a bug with the plugin?
Thank you very much, kind regards.