paulfairless / grails-lesscss-resources

Grails plugin for using the LESS CSS framework in conjunction with the grails-resource plugin family
Other
35 stars 27 forks source link

Exception thrown with Bootstrap 3.1.1 #56

Open mtgleeson opened 10 years ago

mtgleeson commented 10 years ago

I'm trying to compile the out-of-the-box less files for Bootstrap 3.1.1 using Grails 2.3.0 and the lesscss-resources plugin v1.3.3. I'm getting the error below. Any thoughts?

My ApplicationResources has: resource url:'less/style.less',attrs:[rel: "stylesheet/less", type:'css']

and my style.less is: @import "bootstrap/bootstrap.less";

| Error 2014-03-23 21:45:23,263 [localhost-startStop-1] ERROR resourceMappers.LesscssResourceMapper - error compiling less file: ..../tomcat/work/Tomcat/localhost/_/grails-resources/less/style.less Message: Syntax Error on line 1474 Line | Method ->> 283 | compile in org.lesscss.LessCompiler


| 335 | compile in '' | 359 | compile . . . . . . . . . . . in '' | 325 | compile in '' | 312 | compile . . . . . . . . . . . in '' | 35 | map in LesscssResourceMapper | 139 | invoke . . . . . . . . . . . in org.grails.plugin.resource.mapper.ResourceMapper | 128 | invokeIfNotExcluded in '' | 590 | applyMappers . . . . . . . . in org.grails.plugin.resource.ResourceProcessor | 535 | prepareResource in '' | 610 | doCall . . . . . . . . . . . in org.grails.plugin.resource.ResourceProcessor$_prepareSingleDeclaredResource_closure12 | 29 | addDeclaredResource in org.grails.plugin.resource.util.ResourceMetaStore | 608 | prepareSingleDeclaredResource in org.grails.plugin.resource.ResourceProcessor | 633 | doCall in org.grails.plugin.resource.ResourceProcessor$_prepareResourceBatch_closure14 | 8 | each . . . . . . . . . . . . in org.grails.plugin.resource.ResourceProcessorBatch | 629 | prepareResourceBatch in org.grails.plugin.resource.ResourceProcessor | 813 | resourcesChanged . . . . . . in '' | 809 | loadModules in '' | 1078 | reloadAll . . . . . . . . . . in '' | 172 | doCall in ResourcesGrailsPlugin$_closure3 | 334 | innerRun . . . . . . . . . . in java.util.concurrent.FutureTask$Sync | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . . . . . . . . . . . in java.lang.Thread Caused by JavaScriptException: object Object ->> 1018 | interpretLoop in org.mozilla.javascript.Interpreter


| 815 | interpret in '' | 109 | call . . . . . . . . . . . . in org.mozilla.javascript.InterpretedFunction | 394 | doTopCall in org.mozilla.javascript.ContextFactory | 3091 | doTopCall . . . . . . . . . . in org.mozilla.javascript.ScriptRuntime | 107 | call in org.mozilla.javascript.InterpretedFunction | 270 | compile . . . . . . . . . . . in org.lesscss.LessCompiler | 335 | compile in '' | 359 | compile . . . . . . . . . . . in '' | 325 | compile in '' | 312 | compile . . . . . . . . . . . in '' | 35 | map in LesscssResourceMapper | 139 | invoke . . . . . . . . . . . in org.grails.plugin.resource.mapper.ResourceMapper | 128 | invokeIfNotExcluded in '' | 590 | applyMappers . . . . . . . . in org.grails.plugin.resource.ResourceProcessor | 535 | prepareResource in '' | 610 | doCall . . . . . . . . . . . in org.grails.plugin.resource.ResourceProcessor$_prepareSingleDeclaredResource_closure12 | 29 | addDeclaredResource in org.grails.plugin.resource.util.ResourceMetaStore | 608 | prepareSingleDeclaredResource in org.grails.plugin.resource.ResourceProcessor | 633 | doCall in org.grails.plugin.resource.ResourceProcessor$_prepareResourceBatch_closure14 | 8 | each . . . . . . . . . . . . in org.grails.plugin.resource.ResourceProcessorBatch | 629 | prepareResourceBatch in org.grails.plugin.resource.ResourceProcessor | 813 | resourcesChanged . . . . . . in '' | 809 | loadModules in '' | 1078 | reloadAll . . . . . . . . . . in '' | 172 | doCall in ResourcesGrailsPlugin$_closure3 | 334 | innerRun . . . . . . . . . . in java.util.concurrent.FutureTask$Sync | 166 | run in java.util.concurrent.FutureTask | 1145 | runWorker . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 724 | run . . . . . . . . . . . . . in java.lang.Thread

ivarprudnikov commented 10 years ago

Assume it is because of underlying less compiler used. There is even a new plugin to handle this particular issue: http://grails.org/plugin/asual-lesscss-resources

mtgleeson commented 10 years ago

That did the trick thanks.

On 26 March 2014 04:33, Ivar Prudnikov notifications@github.com wrote:

Assume it is because of underlying less compiler used. There is even a new plugin to handle this particular issue: http://grails.org/plugin/asual-lesscss-resources

Reply to this email directly or view it on GitHubhttps://github.com/paulfairless/grails-lesscss-resources/issues/56#issuecomment-38578982 .