0

Grails 2.1.0プラグインtwitter-bootstrap 2.0.4とを使用してインストールしようとしていますless-resources 1.3.0.2。次app-runのエラーが表示されます。

C:\Java\jdk1.7.0_05\bin\java "-Dgrails.home=C:\Grails 2.1.0" -Dbase.dir=D:\Projects\russiansphere -Dtools.jar=C:\Java\jdk1.7.0_05\lib\tools.jar "-Dgroovy.starter.conf=C:\Grails 2.1.0/conf/groovy-starter.conf" -Xmx512M -XX:MaxPermSize=192m -Djline.WindowsTerminal.directConsole=false "-javaagent:C:\Grails 2.1.0\lib\com.springsource.springloaded\springloaded-core\jars\springloaded-core-1.0.6.jar" -noverify -Dspringloaded=profile=grails -Didea.launcher.port=7533 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 11.1.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Grails 2.1.0\lib\org.codehaus.groovy\groovy-all\jars\groovy-all-1.8.6.jar;C:\Grails 2.1.0\dist\grails-bootstrap-2.1.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA 11.1.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf "C:\Grails 2.1.0/conf/groovy-starter.conf" run-app

| Loading Grails 2.1.0
| Configuring classpath
| Configuring classpath.
| Environment set to development
| Environment set to development.
| Environment set to development..
| Environment set to development...
| Environment set to development....
| Environment set to development.....
| Packaging Grails application
| Packaging Grails application.
| Packaging Grails application..
| Packaging Grails application...
| Packaging Grails application....
| Compiling 79 source files
| Compiling 79 source files.
| Compiling 79 source files..
| Compiling 9 source files
| Compiling 9 source files.
| Compiling 9 source files..
| Compiling 9 source files...
| Compiling 9 source files....
| Compiling 9 source files.....
| Running Grails application
| Error 2012-08-21 01:54:09,741 [pool-7-thread-1] ERROR resourceMappers.LessResourceMapper  - Error compiling less file: C:\Users\Edward\.grails\2.1.0\projects\russiansphere\tomcat\work\Tomcat\localhost\russiansphere\grails-resources\plugins\twitter-bootstrap-2.0.4\less\bootstrap.less
Message: unterminated string literal (<script>#17749)
    Line | Method
->>  109 | runtimeError                  in org.mozilla.javascript.DefaultErrorReporter
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|     96 | error                         in     ''
|    146 | addError . . . . . . . . . .  in org.mozilla.javascript.Parser
|    532 | getToken                      in org.mozilla.javascript.TokenStream
|    172 | peekToken . . . . . . . . . . in org.mozilla.javascript.Parser
|   2245 | primaryExpr                   in     ''
|   1955 | memberExpr . . . . . . . . .  in     ''
|   1813 | unaryExpr                     in     ''
|   1742 | mulExpr . . . . . . . . . . . in     ''
|   1723 | addExpr                       in     ''
|   1703 | shiftExpr . . . . . . . . . . in     ''
|   1677 | relExpr                       in     ''
|   1633 | eqExpr . . . . . . . . . . .  in     ''
|   1622 | bitAndExpr                    in     ''
|   1611 | bitXorExpr . . . . . . . . .  in     ''
|   1600 | bitOrExpr                     in     ''
|   1588 | andExpr . . . . . . . . . . . in     ''
|   1576 | orExpr                        in     ''
|   1559 | condExpr . . . . . . . . . .  in     ''
|   1544 | assignExpr                    in     ''
|   1910 | argumentList . . . . . . . .  in     ''
|   2050 | memberExprTail                in     ''
|   1958 | memberExpr . . . . . . . . .  in     ''
|   1813 | unaryExpr                     in     ''
|   1742 | mulExpr . . . . . . . . . . . in     ''
|   1723 | addExpr                       in     ''
|   1703 | shiftExpr . . . . . . . . . . in     ''
|   1677 | relExpr                       in     ''
|   1633 | eqExpr . . . . . . . . . . .  in     ''
|   1622 | bitAndExpr                    in     ''
|   1611 | bitXorExpr . . . . . . . . .  in     ''
|   1600 | bitOrExpr                     in     ''
|   1588 | andExpr . . . . . . . . . . . in     ''
|   1576 | orExpr                        in     ''
|   1559 | condExpr . . . . . . . . . .  in     ''
|   1544 | assignExpr                    in     ''
|   1523 | expr . . . . . . . . . . . .  in     ''
|   1202 | statementHelper               in     ''
|    707 | statement . . . . . . . . . . in     ''
|    401 | parse                         in     ''
|    338 | parse . . . . . . . . . . . . in     ''
|   2368 | compileImpl                   in org.mozilla.javascript.Context
|   1359 | compileString . . . . . . . . in     ''
|   1348 | compileString                 in     ''
|   1101 | evaluateString . . . . . . .  in     ''
|     42 | compile                       in com.groovydev.LessCompilerService
|     34 | map . . . . . . . . . . . . . in LessResourceMapper
|    139 | invoke                        in org.grails.plugin.resource.mapper.ResourceMapper
|    128 | invokeIfNotExcluded . . . . . in     ''
|    589 | applyMappers                  in org.grails.plugin.resource.ResourceProcessor
|    535 | prepareResource . . . . . . . in     ''
|    604 | doCall                        in org.grails.plugin.resource.ResourceProcessor$_prepareSingleDeclaredResource_closure12
|     29 | addDeclaredResource . . . . . in org.grails.plugin.resource.util.ResourceMetaStore
|    602 | prepareSingleDeclaredResource in org.grails.plugin.resource.ResourceProcessor
|    627 | doCall . . . . . . . . . . .  in org.grails.plugin.resource.ResourceProcessor$_prepareResourceBatch_closure14
|      8 | each                          in org.grails.plugin.resource.ResourceProcessorBatch
|    623 | prepareResourceBatch . . . .  in org.grails.plugin.resource.ResourceProcessor
|    806 | resourcesChanged              in     ''
|    802 | loadModules . . . . . . . . . in     ''
|   1071 | reloadAll                     in     ''
|    172 | doCall . . . . . . . . . . .  in ResourcesGrailsPlugin$_closure3
|    334 | innerRun                      in java.util.concurrent.FutureTask$Sync
|    166 | run . . . . . . . . . . . . . in java.util.concurrent.FutureTask
|   1110 | runWorker                     in java.util.concurrent.ThreadPoolExecutor
|    603 | run . . . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run                           in java.lang.Thread
| Error 2012-08-21 01:54:10,016 [pool-7-thread-1] ERROR resourceMappers.LessResourceMapper  - Error compiling less file: C:\Users\Edward\.grails\2.1.0\projects\russiansphere\tomcat\work\Tomcat\localhost\russiansphere\grails-resources\less\custom-bootstrap.less
Message: missing ] after element list (<script>#17749)
    Line | Method
->>  109 | runtimeError                  in org.mozilla.javascript.DefaultErrorReporter
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|     96 | error                         in     ''
|    146 | addError . . . . . . . . . .  in org.mozilla.javascript.Parser
|    160 | reportError                   in     ''
|   2294 | primaryExpr . . . . . . . . . in     ''
|   1955 | memberExpr                    in     ''
|   1813 | unaryExpr . . . . . . . . . . in     ''
|   1742 | mulExpr                       in     ''
|   1723 | addExpr . . . . . . . . . . . in     ''
|   1703 | shiftExpr                     in     ''
|   1677 | relExpr . . . . . . . . . . . in     ''
|   1633 | eqExpr                        in     ''
|   1622 | bitAndExpr . . . . . . . . .  in     ''
|   1611 | bitXorExpr                    in     ''
|   1600 | bitOrExpr . . . . . . . . . . in     ''
|   1588 | andExpr                       in     ''
|   1576 | orExpr . . . . . . . . . . .  in     ''
|   1559 | condExpr                      in     ''
|   1544 | assignExpr . . . . . . . . .  in     ''
|   1910 | argumentList                  in     ''
|   2050 | memberExprTail . . . . . . .  in     ''
|   1958 | memberExpr                    in     ''
|   1813 | unaryExpr . . . . . . . . . . in     ''
|   1742 | mulExpr                       in     ''
|   1723 | addExpr . . . . . . . . . . . in     ''
|   1703 | shiftExpr                     in     ''
|   1677 | relExpr . . . . . . . . . . . in     ''
|   1633 | eqExpr                        in     ''
|   1622 | bitAndExpr . . . . . . . . .  in     ''
|   1611 | bitXorExpr                    in     ''
|   1600 | bitOrExpr . . . . . . . . . . in     ''
|   1588 | andExpr                       in     ''
|   1576 | orExpr . . . . . . . . . . .  in     ''
|   1559 | condExpr                      in     ''
|   1544 | assignExpr . . . . . . . . .  in     ''
|   1523 | expr                          in     ''
|   1202 | statementHelper . . . . . . . in     ''
|    707 | statement                     in     ''
|    401 | parse . . . . . . . . . . . . in     ''
|    338 | parse                         in     ''
|   2368 | compileImpl . . . . . . . . . in org.mozilla.javascript.Context
|   1359 | compileString                 in     ''
|   1348 | compileString . . . . . . . . in     ''
|   1101 | evaluateString                in     ''
|     42 | compile . . . . . . . . . . . in com.groovydev.LessCompilerService
|     34 | map                           in LessResourceMapper
|    139 | invoke . . . . . . . . . . .  in org.grails.plugin.resource.mapper.ResourceMapper
|    128 | invokeIfNotExcluded           in     ''
|    589 | applyMappers . . . . . . . .  in org.grails.plugin.resource.ResourceProcessor
|    535 | prepareResource               in     ''
|    604 | doCall . . . . . . . . . . .  in org.grails.plugin.resource.ResourceProcessor$_prepareSingleDeclaredResource_closure12
|     29 | addDeclaredResource           in org.grails.plugin.resource.util.ResourceMetaStore
|    602 | prepareSingleDeclaredResource in org.grails.plugin.resource.ResourceProcessor
|    627 | doCall                        in org.grails.plugin.resource.ResourceProcessor$_prepareResourceBatch_closure14
|      8 | each . . . . . . . . . . . .  in org.grails.plugin.resource.ResourceProcessorBatch
|    623 | prepareResourceBatch          in org.grails.plugin.resource.ResourceProcessor
|    806 | resourcesChanged . . . . . .  in     ''
|    802 | loadModules                   in     ''
|   1071 | reloadAll . . . . . . . . . . in     ''
|    172 | doCall                        in ResourcesGrailsPlugin$_closure3
|    334 | innerRun . . . . . . . . . .  in java.util.concurrent.FutureTask$Sync
|    166 | run                           in java.util.concurrent.FutureTask
|   1110 | runWorker . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor
|    603 | run                           in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run . . . . . . . . . . . . . in java.lang.Thread
| Server running. Browse to http://localhost:8080/russiansphere

パス処理に関するWindowsの問題であり、おそらくどこかでスラッシュをエスケープする必要があると確信しています。しかし、正確にはどこですか?

オペレーティング システム: Windows 7 アルティメット


更新: Arch Linux ではすべて問題ないようです。

4

1 に答える 1

1

less-resources 1.3.0.2プラグインを に変更することで問題を解決しましたlesscss-resources 1.3.0.3。バグが少ないプラグインのようです。:D

于 2012-08-21T14:16:03.020 に答える