编译GWT关闭错误

时间:2012-11-18 18:36:17

标签: gwt closures

编译时我遇到以下错误。如何找出受影响的文件并导致此错误?

   splitPointToFragmentMap[38] = 16
         [ERROR] Nov 19, 2012 2:33:28 AM com.google.gwt.thirdparty.javascript.jscomp.PhaseOptimizer$NamedPass process
         [ERROR] INFO: processGoogScopeAliases
         [ERROR] Nov 19, 2012 2:33:28 AM com.google.gwt.thirdparty.javascript.jscomp.PhaseOptimizer$NamedPass process
         [ERROR] INFO: processProvidesAndRequires
         [ERROR] Nov 19, 2012 2:33:29 AM com.google.gwt.thirdparty.javascript.jscomp.PhaseOptimizer$NamedPass process
         [ERROR] INFO: checkVars
         [ERROR] Nov 19, 2012 2:33:29 AM com.google.gwt.thirdparty.javascript.jscomp.PhaseOptimizer$NamedPass process
         [ERROR] INFO: checkRegExp
         [ERROR] Nov 19, 2012 2:33:30 AM com.google.gwt.thirdparty.javascript.jscomp.PhaseOptimizer$NamedPass process
         [ERROR] INFO: renameCssNames
         [ERROR] Nov 19, 2012 2:33:30 AM com.google.gwt.thirdparty.javascript.jscomp.PhaseOptimizer$NamedPass process
         [ERROR] INFO: replaceMessages
         [ERROR] Nov 19, 2012 2:33:30 AM com.google.gwt.thirdparty.javascript.jscomp.PhaseOptimizer$NamedPass process
         [ERROR] INFO: processDefines
         [ERROR] Nov 19, 2012 2:33:31 AM com.google.gwt.thirdparty.javascript.jscomp.Compiler normalize
         [ERROR] INFO: Normalizing

1 个答案:

答案 0 :(得分:1)

您可能有.js包含哪个gwt闭包编译器选项正在尝试优化并报告错误。

解决gwt闭包编译器错误消息的步骤。

1)将编译器loglevel设置为TRACE

2)将编译器标志严格设置为true

编译并验证是否找到任何其他信息。还迭代地移除任何js包括或第三方jar以隔离哪个是违规的jar。

注意:为了使这个更具挑战性的GWT compileReport,在打开GWT Closure Compiler时,compilerMetrics,soycDetailed不起作用http://code.google.com/p/google-web-toolkit/issues/detail?id=7475