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

LessException with example code

Open frangarcia opened this issue 11 years ago • 2 comments

I am trying to work with this library in a Grails project but just running the example code

LessEngine engine = new LessEngine();

String text = engine.compile("div { width: 1 }");

throws the exception

com.asual.lesscss.LessException: Syntax Error: Cannot find function trim.

The version I am working on is 1.4.2.

It seems to be working with version 1.3.3.

frangarcia avatar Feb 18 '14 17:02 frangarcia

Am running into the same issue and our code base is not compatible with the older version of less ! Any updates on understanding this issue would be of great help.

SanjayBysani avatar Jun 06 '14 09:06 SanjayBysani

Been looking into this a bit. The problem in my case was, someother library had an internal dependency on a different version of rhino and, during compilation, the other rhino version was resolved to the classpath. Hope this helps.

SanjayBysani avatar Jun 06 '14 22:06 SanjayBysani