gwt 1.7.0 compiler crashed only when launched by intellij

Launching the gwt compiler with the command line with no options works fine.
Launching the gwt compiler with intellij gives the following error.
All works fine with gwt 1.6.4
I am with ij eap 10652
I wonder what is so different between my two minimal invocations of the compiler.
Until then I cant really report that to google.

Information:Compilation completed with 15 errors and 0 warnings
Information:15 errors
Information:0 warnings
Error:An internal compiler exception occurred
Error:at com.google.gwt.dev.js.JsBreakUpLargeVarStatements.getMaxVarsPerStatement(JsBreakUpLargeVarStatements.java:91)
Error:at com.google.gwt.dev.js.JsBreakUpLargeVarStatements.<init>(JsBreakUpLargeVarStatements.java:51)
Error:at com.google.gwt.dev.js.JsBreakUpLargeVarStatements.exec(JsBreakUpLargeVarStatements.java:41)
Error:at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:203)
Error:at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:181)
Error:at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:47)
Error:at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:72)
Error:at java.lang.Thread.run(Thread.java:619)
Error:at com.google.gwt.dev.cfg.StaticPropertyOracle.getPropertyValue(StaticPropertyOracle.java:78)
Error:at com.google.gwt.dev.js.JsBreakUpLargeVarStatements.getMaxVarsPerStatement(JsBreakUpLargeVarStatements.java:89)
Error:Unrecoverable exception, shutting down
Error:at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.logAndTranslateException(JavaToJavaScriptCompiler.java:609)
Error:at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:212)
Error:Not all permutation were compiled , completed (0/10)

2 comments
Comment actions Permalink

Looks like the problem is related to "compiler.max.vars.per.var" property. Maybe it is defined in some GWT module and has incorrect value.

Launching the gwt compiler with the command line with no options works fine.

Launching the gwt compiler with intellij gives the following



Information:Compilation completed with 15 errors and 0 warnings
Information:15 errors
Information:0 warnings
Error:An internal compiler exception occurred
Error:at com.google.gwt.dev.js.JsBreakUpLargeVarStatements.getMaxVarsPerStatement(JsBreakUpLargeVarStatements.java:91)
Error:at com.google.gwt.dev.js.JsBreakUpLargeVarStatements.<init>(JsBreakUpLargeVarStatements.java:51)
Error:at com.google.gwt.dev.js.JsBreakUpLargeVarStatements.exec(JsBreakUpLargeVarStatements.java:41)
Error:at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:203)
Error:at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:181)
Error:at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:47)
Error:at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:72)
Error:at java.lang.Thread.run(Thread.java:619)
Error:at com.google.gwt.dev.cfg.StaticPropertyOracle.getPropertyValue(StaticPropertyOracle.java:78)
Error:at com.google.gwt.dev.js.JsBreakUpLargeVarStatements.getMaxVarsPerStatement(JsBreakUpLargeVarStatements.java:89)
Error:Unrecoverable exception, shutting down
Error:at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.logAndTranslateException(JavaToJavaScriptCompiler.java:609)
Error:at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:212)
Error:Not all permutation were compiled , completed (0/10)

I wonder what is so different between my two minimal invocations of the compiler. Until then I cant really report that to google.



---
Original message URL: http://www.jetbrains.net/devnet/message/5243876#5243876



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Yea this property was not found because... I had some older gwt-user.jar crawling somewhere in my ij classpath.
My fault
I will always reference gwt-user.jar and gwt-servlet.jar in their gwt installation in the future.
So when I trash a gwt installation these jar dissapear too.
Obviously...

0

Please sign in to leave a comment.