dieter & twitter bootstrap
DanThiffault opened this issue · 2 comments
I have a project working with dieter. I am currently using code from efcbb9b. I can create a main.less file:
@lime: #AABB00;
body {background-color: @lime;}
and using link-to-asset I can pull up /assets/stylesheets/main.css which looks like this
body {
background-color: #aabb00;
}
So it looks like my overall setup is working. if I copy files from bootstrap in to my project and update my main.less as follows:
@lime: #AABB00;
body {background-color: @lime;}
@import "bootstrap.less"
I get the error:
org.mozilla.javascript.JavaScriptException: ERROR:null:null:-1:
"error" is not defined.
TYPE: Syntax
INDEX: undefined
EXTRACT: ,, (less-wrapper.js#64)
Reading through the bootstrap forums it looks like people were having incompatibilities with versions <1.3 of the less compiler. If I run lessc main.less the file properly compiles.
It looks to me like dieter uses v1.3 of the js compiler executed using less-wrapper.js. Did I get all of this correct? I'll keep digging in to see if I can track it down, but any suggestions/directions to look would be much appreciated.
I saw exactly the same thing. For me, it was a problem where I had a nested import, and the inner import did not use the correct path structure (which seems to have changed: it was relative to the root, its now relative to the importing file).
To help debug this, I would use wget to fetch files directly while commenting out half the file at once to find the line with the error, and then I experimented to find the right directory structure. I use the v8 branch (unstable - dont use in production!) to speed things up. Hope that helps.
As of bootstrap v2.2.0 this is cleared up. I believe it had to do with this issue.