lesscss-servlet icon indicating copy to clipboard operation
lesscss-servlet copied to clipboard

Using version 1.5.0 results in error on initialisation

Open tveimo opened this issue 10 years ago • 1 comments

lesscss.LessEngine.() - line 118 [] - LESS Engine intialization failed. org.mozilla.javascript.EvaluatorException: illegal character (/Users/torgeir/java/apache-tomcat-7.0.47/work/Catalina/localhost/frontend/loader/META-INF/less.js#2588) at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109) at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96) ...

tveimo avatar Apr 03 '14 05:04 tveimo

Looks like there's an error in line 2588 of less.js. It reads

    ('file://' + ctx.debugInfo.fileName).replace(/([.:/\\])/g, function (a) {

in the most recent version of less.js, it's

    ('file://' + ctx.debugInfo.fileName).replace(/([.:\/\\])/g, function (a) {

ie, the / behind the colon is escaped like / (in lib/less/tree.js). It's related to this issue;

https://github.com/less/less.js/commit/15af82848d6417f3578470257faed43f61c22331

Any chance we can get a fixed version in maven?

tveimo avatar Jun 14 '14 13:06 tveimo