lessphp icon indicating copy to clipboard operation
lessphp copied to clipboard

parse error: failed at `&:extend(.clearfix all);

Open Pavel910 opened this issue 10 years ago • 6 comments

I'm trying to compile Bootstrap less files, and the compiler throws this exception:

parse error: failed at &:extend(.clearfix all);`

The LESS code looks like the following:

.container-fixed() {
  margin-right: auto;
  margin-left: auto;
  padding-left:  (@grid-gutter-width / 2);
  padding-right: (@grid-gutter-width / 2);
  &:extend(.clearfix all);
}

I'm using your compiler because it supports absolute paths in @import statement, so it would be great if you could fix this one. Thanks.

Pavel910 avatar Dec 11 '14 15:12 Pavel910

I'm getting the same error for &:extend(.clearfix all); in the same bootstrap 3 mixing file. Let me know what I can do to help fix this.

elliotboney avatar Dec 22 '14 16:12 elliotboney

:+1: me too same parsing error. Whats the problem? i teststed some bootstrap versions. 3.0.0 - 3.0.3 its ok no errors, but all above the same parsing error not just in grid.less

MarcoAms avatar Dec 22 '14 23:12 MarcoAms

Duplicate of #498.

cvrebert avatar Jan 07 '15 19:01 cvrebert

bootstrap 3.3 leafo : 0.5

parse error: failed at `&:extend(.clearfix all);

hlorridi avatar Feb 06 '15 17:02 hlorridi

:+1:

tirithen avatar May 27 '15 11:05 tirithen

+++ bootstrap 3.3.5 parse error: failed at `&:extend(.clearfix all);

andrtechno avatar Jul 19 '15 06:07 andrtechno