1.4.0 gets parse error on bootstrap mixins.less
Getting ParseError on bootstrap mixins, confirmed that it was working in 1.3.3
Error
ParseError: Unrecognised input in /.../bootstrap/mixins.less on line 562, column 7:
561 .spanX (@index) when (@index > 0) {
562 (~".span@{index}") { .span(@index); }
563 .spanX(@index - 1);
Reproduce
Using bootstrap version 2.2.1
Create a compile file (lol.less)
// Core variables and mixins
@import "variables.less";
@import "mixins.less";
Compile it
lessc lol.less lol.css
Voila. Error.
I suggest using 1.3.3 for Bootstrap 2.x. Alternatively you can update the mixin to work with 1.4.0.
one of the bootstrap 2.x releases contains a fix for this. So the latest 2.x works in 1.4
Yeah, actually what version of Bootstrap is this? I think this is 2.3.0, because this should be fixed in Bootstrap 2.3.1 (per @lukeapage's pull request that was merged)
thanks @jonschlinkert for filling in the numbers!
Hi guys, just to confirm replacing mixins.less from an old build of Bootstrap with the latest (2.3.2) fixes this issue.
Thanks very much for your help, all
:+1: Thanks for the solution
For those who want to manually update their mixin file themselves, simply update the string interpolation syntax:

Found here within the 1.4.0 section (search for 'breaking changes').