Javascript Grails ui性能插件不能与CKEditor一起使用
我安装了GrailsUI性能插件,并对代码进行了必要的更改。它似乎对开发不起作用,我得到的文件名称以“_vnull”结尾,所以我在开发时禁用了它,并尝试使用WAR文件进行测试。但是,在生成WAR文件时,我遇到以下错误和异常:Javascript Grails ui性能插件不能与CKEditor一起使用,javascript,grails,ckeditor,grails-plugin,Javascript,Grails,Ckeditor,Grails Plugin,我安装了GrailsUI性能插件,并对代码进行了必要的更改。它似乎对开发不起作用,我得到的文件名称以“_vnull”结尾,所以我在开发时禁用了它,并尝试使用WAR文件进行测试。但是,在生成WAR文件时,我遇到以下错误和异常: [ERROR] 1:0:Compilation produced 55 syntax errors. in lineSource: null sourceName: null ERROR: problem minifying /Users/maricel/.grails/
[ERROR] 1:0:Compilation produced 55 syntax errors. in lineSource: null sourceName: null
ERROR: problem minifying /Users/maricel/.grails/1.3.5/projects/community-services/stage/plugins/ckeditor-3.4.1.1-SNAPSHOT/js/ofm/scripts/languages/ca.js: Compilation produced 55 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 55 syntax errors.
at com.studentsonly.grails.plugins.uiperformance.JsErrorReporter.runtimeError(JsErrorReporter.groovy:35)
at org.mozilla.javascript.Parser.parse(Parser.java:410)
at org.mozilla.javascript.Parser.parse(Parser.java:355)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312)
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.versionAndMinifyJs(ResourceVersionHelper.groovy:230)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.this$2$versionAndMinifyJs(ResourceVersionHelper.groovy)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper$this$2$versionAndMinifyJs.callCurrent(Unknown Source)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.applyVersion(ResourceVersionHelper.groovy:158)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.this$2$applyVersion(ResourceVersionHelper.groovy)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper$_versionResources_closure1.doCall(ResourceVersionHelper.groovy:101)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.versionResources(ResourceVersionHelper.groovy:91)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.this$2$versionResources(ResourceVersionHelper.groovy)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper$this$2$versionResources.callCurrent(Unknown Source)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.version(ResourceVersionHelper.groovy:44)
at com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper$version.call(Unknown Source)
at _Events.versionResources(_Events.groovy:36)
at _Events$_run_closure2.doCall(_Events.groovy:16)
at _GrailsEvents_groovy$_run_closure5.doCall(_GrailsEvents_groovy:58)
at _GrailsEvents_groovy$_run_closure5.call(_GrailsEvents_groovy)
at _GrailsWar_groovy$_run_closure5.doCall(_GrailsWar_groovy:327)
at War$_run_closure1.doCall(War.groovy:38)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.executeTargets(Gant.groovy:590)
at gant.Gant.executeTargets(Gant.groovy:589)
Error executing script War: org.mozilla.javascript.EvaluatorException: Compilation produced 55 syntax errors.
[ERROR]1:0:编译产生了55个语法错误。行内源:null源名称:null
错误:缩小问题/Users/maricel/.grails/1.3.5/projects/community-services/stage/plugins/ckeditor-3.4.1.1-SNAPSHOT/js/ofm/scripts/languages/ca.js:编译产生了55个语法错误。
org.mozilla.javascript.EvaluatorException:编译产生了55个语法错误。
位于com.studentsonly.grails.plugins.uiperformance.JsErrorReporter.runtimeError(JsErrorReporter.groovy:35)
位于org.mozilla.javascript.Parser.parse(Parser.java:410)
位于org.mozilla.javascript.Parser.parse(Parser.java:355)
位于com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312)
位于com.yahoo.platform.yui.compressor.JavaScriptCompressor.(JavaScriptCompressor.java:533)
位于com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.versionAndMinifyJs(ResourceVersionHelper.groovy:230)
在com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.this$2$versionAndMinifyJs(ResourceVersionHelper.groovy)上
在com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper$this$2$version和minifyjs.callCurrent(未知源代码)
位于com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.applyVersion(ResourceVersionHelper.groovy:158)
在com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.this$2$applyVersion(ResourceVersionHelper.groovy)
位于com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper$\u versionResources\u closure1.doCall(ResourceVersionHelper.groovy:101)
位于com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.versionResources(ResourceVersionHelper.groovy:91)
位于com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.this$2$versionResources(ResourceVersionHelper.groovy)
位于com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper$此$2$versionResources.callCurrent(未知源)
位于com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper.version(ResourceVersionHelper.groovy:44)
位于com.studentsonly.grails.plugins.uiperformance.ResourceVersionHelper$version.call(未知源)
at_Events.versionResources(_Events.groovy:36)
at _Events$\u run\u closure2.doCall(_Events.groovy:16)
在GrailEvents\uGroovy$run\uClosure5.doCall(GrailEvents\uGroovy:58)
在GrailEvents\uGroovy$run\uClosure5.call(GrailEvents\uGroovy)
在GrailsWar\uGroovy$\uRun\uClosure5.doCall(GrailsWar\uGroovy:327)
War$\u run\u closure1.doCall(War.groovy:38)
在gant.gant$\u dispatch\u closure5.doCall(gant.groovy:381)
在gant.gant$\u dispatch\u closure7.doCall(gant.groovy:415)
在gant.gant$\u dispatch\u closure7.doCall(gant.groovy)
在gant.gant.withBuildListeners(gant.groovy:427)
这个$2$withBuildListeners(gant.groovy)
在gant.gant$this$2$withBuildListeners.callCurrent(未知源)
甘特图调度(甘特图groovy:415)
在gant.gant.this$2$dispatch(gant.groovy)
在gant.gant.invokeMethod(gant.groovy)中
在gant.gant.executeTargets(gant.groovy:590)
在gant.gant.executeTargets(gant.groovy:589)
执行脚本War:org.mozilla.javascript.EvaluatorException时出错:编译产生55个语法错误。
这与CKEditor插件有冲突吗?知道怎么修吗
谢谢你的帮助 我通过为plugins目录添加一个排除项修复了这个问题:
uiperformance.exclusions = [
"**/plugins/**"
]
正如在中所建议的,我在Grails用户邮件列表中得到了一系列关于这个问题的非常好的答案,您可以在这里看到