Open coladict opened 10 years ago
the same for me. But it works fine for single simple less files. So I guess it's related to something with \@import like @import "../../../../xxx/1.1.1/xxxx/less/xxxxx.less"; which is outside of "sourceDirectory".
Update: I removed the following form style.less and it compiled
@import "variables.less";
@import "mixins.less";
@import "navs.less";
@import "glyphicons.less";
@import "carousel.less";
They were all duplicates from bootstrap.less (external package, not ours, obviously), however, the first two files seem to have name twins in ./ and ../font-awesome/less/ (relative to style.less) with totally different contents.
In my case, it hangs at "Watching..." nothing happens. I'm using Windows if it matters, although I tried on ubuntu & same thing. If I remove <watch>true</watch>
then it passes.
I'm using maven tomcat7 plugin to run the app through embedded tomcat server using the following command.
mvn tomcat7:run -Pdev
dev profile contains the lesscss maven plugin
Same problem here on Ubuntu. Running with less.js (lessc) and minimizing with --clean-css takes about 2 seconds max. Running with maven lesscss and no minimizing blows up with out-of-memory error. If I increase memory to about -Xmx2048m then it just runs forever. We have a large less file that imports many of the Bootstrap less files. There are about 3 visible layers of import:
For now, I have commented out the lesscss plugin call and am storing the final css file in git. Next approach will be to add node.js calls to our maven build (pretty painful) to use less.js. I will track this issue for alternatives. Willing to send our less files to anyone who wants them for testing. No significant IP there and no shame since I only inherited them.
We've recently started using Less in our project and it compiles for less than a second with the node-less package under Ubuntu. I tried to add it to the maven build, so we can remove the file from the Git repo, because it blows-up the patches. I waited 10 minutes for it to compile with this plugin before I stopped it. This is our plugin configuration.
These are our Less scripts https://www.dropbox.com/s/i06njcgy184t4hz/less.tar.gz?dl=0
Also, these are the maven compile logs with -X when I was done waiting and stopped it: