Closed gdelhumeau closed 9 years ago
The problem is caused by one of the imported files - if I remove imports and add missing variable everything compiles. The error does not says which one, I will add that print into BugHappened event.
Could you please put breakpoint into BugHappened
and see what file is returned by offendingNode.getSourceLine()
? It would help greatly if I could get line 102 of that file.
The file is: https://github.com/twbs/bootstrap/blob/v3.2.0/less/mixins/vendor-prefixes.less#L102
The line 102 is:
&::-moz-placeholder { color: @color; // Firefox
One way to reproduce the problem:
@import (reference) "less/bootstrap.less";
.placeholder();
Important notes:
.placeholder
mixin must be imported for it to fail. Following construction works correctly:
.placeholder(@color: @input-color-placeholder) {
&::-moz-placeholder {
color: @color;
opacity: 1;
}
}
@input-color-placeholder: red;
.placeholder();
Following construction works correctly too:
@import "less/mixins/vendor-prefixes.less"; // Bootstrap
@input-color-placeholder:red;
.placeholder();
Smallest reproduce so far:
.placeholder() {
&::-webkit-input-placeholder { color: red; }
}
.modal-footer {
&:extend(.clearfix all);
}
.placeholder();
Error is reported on line 2:
Offending place: .../bootstrap-3.2.0-less/flamingo-m.less 2:1
The issue I could reproduce is now fixed, so I'm closing the issue. If the current master or the next release does not fix your problem, please re-open.
I released new version 1.8.4, your problem should be fixed there. If it is not, please re-open this issue.
Hello.
I am integrating Less4j into XWiki.
However, I have an exception:
Source code that I try to compile (the coding style is bad because it is a generated file):
Thanks, Guillaume