Closed OverZealous closed 12 years ago
Upgrading from Less-Resources 1.0.1 to 1.3.0, I can no longer compile Less files. I simply get this error:
| Error 2012-05-06 16:48:33,640 [pool-17-thread-1] ERROR plugins.DefaultGrailsPluginManager - Error configuring dynamic methods for plugin [resources:1.1.6]: Failed to initialize LESS compiler. Message: Failed to initialize LESS compiler. Line | Method ->> 213 | init in org.lesscss.LessCompiler - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 229 | compile in '' | 302 | compile . . . . . . . . . . . in '' | 326 | compile in '' | 292 | compile . . . . . . . . . . . in '' | 279 | compile in '' | 31 | map . . . . . . . . . . . . . in LesscssResourceMapper$$ENWff6Qi | 139 | invoke in org.grails.plugin.resource.mapper.ResourceMapper$$ENWff6Qi | 128 | invokeIfNotExcluded . . . . . in '' | 587 | applyMappers in org.grails.plugin.resource.ResourceProcessor$$ENWff6Qi | 533 | prepareResource . . . . . . . in '' | 602 | doCall in org.grails.plugin.resource.ResourceProcessor$_prepareSingleDeclaredResource_closure12$$ENWff6Qi | 29 | addDeclaredResource . . . . . in org.grails.plugin.resource.util.ResourceMetaStore$$ENWff6Qi | 600 | prepareSingleDeclaredResource in org.grails.plugin.resource.ResourceProcessor$$ENWff6Qi | 625 | doCall . . . . . . . . . . . in org.grails.plugin.resource.ResourceProcessor$_prepareResourceBatch_closure14$$ENWff6Qi | 8 | each in org.grails.plugin.resource.ResourceProcessorBatch$$ENWff6Qi | 621 | prepareResourceBatch . . . . in org.grails.plugin.resource.ResourceProcessor$$ENWff6Qi | 804 | resourcesChanged in '' | 800 | loadModules . . . . . . . . . in '' | 1056 | reloadAll in '' | 172 | doCall . . . . . . . . . . . in ResourcesGrailsPlugin$_closure3$$ENWff6wy | 303 | innerRun in java.util.concurrent.FutureTask$Sync | 138 | run . . . . . . . . . . . . . in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run . . . . . . . . . . . . . in '' ^ 680 | run in java.lang.Thread Caused by EcmaError: ReferenceError: "arguments" is not defined. (less.js#2447) ->> 3654 | constructError in org.mozilla.javascript.ScriptRuntime - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 3632 | constructError in '' | 3717 | notFoundError . . . . . . . . in '' | 1692 | name in '' | 3410 | interpretLoop . . . . . . . . in org.mozilla.javascript.Interpreter | 2487 | interpret in '' | 164 | call . . . . . . . . . . . . in org.mozilla.javascript.InterpretedFunction | 398 | doTopCall in org.mozilla.javascript.ContextFactory | 3065 | doTopCall . . . . . . . . . . in org.mozilla.javascript.ScriptRuntime | 175 | exec in org.mozilla.javascript.InterpretedFunction | 1135 | evaluateReader . . . . . . . in org.mozilla.javascript.Context | 204 | init in org.lesscss.LessCompiler | 229 | compile . . . . . . . . . . . in '' | 302 | compile in '' | 326 | compile . . . . . . . . . . . in '' | 292 | compile in '' | 279 | compile . . . . . . . . . . . in '' | 31 | map in LesscssResourceMapper$$ENWff6Qi | 139 | invoke . . . . . . . . . . . in org.grails.plugin.resource.mapper.ResourceMapper$$ENWff6Qi | 128 | invokeIfNotExcluded in '' | 587 | applyMappers . . . . . . . . in org.grails.plugin.resource.ResourceProcessor$$ENWff6Qi | 533 | prepareResource in '' | 602 | doCall . . . . . . . . . . . in org.grails.plugin.resource.ResourceProcessor$_prepareSingleDeclaredResource_closure12$$ENWff6Qi | 29 | addDeclaredResource in org.grails.plugin.resource.util.ResourceMetaStore$$ENWff6Qi | 600 | prepareSingleDeclaredResource in org.grails.plugin.resource.ResourceProcessor$$ENWff6Qi | 625 | doCall in org.grails.plugin.resource.ResourceProcessor$_prepareResourceBatch_closure14$$ENWff6Qi | 8 | each . . . . . . . . . . . . in org.grails.plugin.resource.ResourceProcessorBatch$$ENWff6Qi | 621 | prepareResourceBatch in org.grails.plugin.resource.ResourceProcessor$$ENWff6Qi | 804 | resourcesChanged . . . . . . in '' | 800 | loadModules in '' | 1056 | reloadAll . . . . . . . . . . in '' | 172 | doCall in ResourcesGrailsPlugin$_closure3$$ENWff6wy | 303 | innerRun . . . . . . . . . . in java.util.concurrent.FutureTask$Sync | 138 | run in java.util.concurrent.FutureTask | 886 | runTask . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 680 | run . . . . . . . . . . . . . in java.lang.Thread
Reverting back to 1.0.1 and everything works OK. Manually compiling all my less files also works without error.
OS: Mac OS X 10.6.8 Snow Leopard Java: 1.6.0_31 Grails: 2.0.3
I'm not using YUI resources, and I don't have any other dependencies requesting Rhino, so I don't think that's it.
OK, nevermind, looks like I had downloaded a bad copy of org.lesscss.lesscss. I removed it from my ivy cache, and all's fine now. Now I just have errors with explicit bundling.
Upgrading from Less-Resources 1.0.1 to 1.3.0, I can no longer compile Less files. I simply get this error:
Reverting back to 1.0.1 and everything works OK. Manually compiling all my less files also works without error.
OS: Mac OS X 10.6.8 Snow Leopard Java: 1.6.0_31 Grails: 2.0.3
I'm not using YUI resources, and I don't have any other dependencies requesting Rhino, so I don't think that's it.