bootstrapwp-Twitter-Bootstrap-for-WordPress icon indicating copy to clipboard operation
bootstrapwp-Twitter-Bootstrap-for-WordPress copied to clipboard

Latest LESS doesn't compile

Open avanwart opened this issue 11 years ago • 2 comments

I have been compiling LESS with CodeKit successfully up until the latest CodeKit update. After bumping up to CodeKit 1.7.1 (8317) I get this error, even after reverting to a clean version of BootstrapWP:

ParseError: Unrecognised input in [PROJECT PATH]/wp-content/themes/bootstrap/assets/css/less/mixins.less on line 567, column 7: 566 .spanX (@index) when (@index > 0) { 567 (~".span@{index}") { .span(@index); } 568 .spanX(@index - 1);

(This action was triggered by a change to bswp-custom.less)

Can you advise? Thanks in advance for your time.

avanwart avatar Jul 15 '13 16:07 avanwart

Just updated and trying to figure it out as well. Have any luck yet?

Looks like LESS 1.4.0 has deprecated 'selector interpolation'. You'll need to change the syntax.

Example: (~".myclass_@{index}") { ... selector interpolation is deprecated, do this instead .myclass_@{index} { .... This works in 1.3.1 onwards.

Source: http://lesscss.org/

rudyc avatar Jul 24 '13 20:07 rudyc

I was able to resolve this by gutting Rachel's Bootstrap LESS and replacing it with a fresh copy of Bootstrap.

avanwart avatar Jul 24 '13 23:07 avanwart