Skip to content

Exception thrown with Bootstrap 3.1.1 #56

@mtgleeson

Description

@mtgleeson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions