GWT 2.7 Super Dev Mode and IntelliJ 14
I'm trying to do a pretty simple test of GWT's Super Dev Mode and IntelliJ 14 (138.2458.8). Specifically, I want to see the file-by-file recompilation working, and then demo it to my co-workers.
To do this, I did a git clone of the gwt repository and then built it.
After it was all done, I loaded the showcase sample into IntelliJ 14, created a project around it, and got things setup with a run configuration for "old" Dev Mode. So far, so good. It runs, the showcase comes up as expected.
Now, I created another run configuration, but this time, I clicked the "Use Super Dev Mode" check box. When I try to run this configuration, however, I'm getting this error:
/opt/devtools/java/jdk7_64/bin/java -Xmx256m -Didea.launcher.port=7532 -Didea.launcher.bin.path=/opt/devtools/IntelliJ/idea-IU-138.2458.8/bin -Dfile.encoding=UTF-8 -classpath /opt/devtools/IntelliJ/idea-IU-138.2458.8/plugins/GWTStudio/lib/sdm-launcher/superdevmode-launcher-legacy.jar:/home/jgindin/src/gwtproject.org/trunk/build/staging/gwt-2.7.0-test/gwt-codeserver.jar:/home/jgindin/src/GWTShowcase/src:/opt/devtools/java/jdk7_64/jre/lib/jfr.jar:/opt/devtools/java/jdk7_64/jre/lib/javaws.jar:/opt/devtools/java/jdk7_64/jre/lib/management-agent.jar:/opt/devtools/java/jdk7_64/jre/lib/jsse.jar:/opt/devtools/java/jdk7_64/jre/lib/plugin.jar:/opt/devtools/java/jdk7_64/jre/lib/jce.jar:/opt/devtools/java/jdk7_64/jre/lib/jfxrt.jar:/opt/devtools/java/jdk7_64/jre/lib/rt.jar:/opt/devtools/java/jdk7_64/jre/lib/resources.jar:/opt/devtools/java/jdk7_64/jre/lib/deploy.jar:/opt/devtools/java/jdk7_64/jre/lib/charsets.jar:/opt/devtools/java/jdk7_64/jre/lib/ext/sunjce_provider.jar:/opt/devtools/java/jdk7_64/jre/lib/ext/zipfs.jar:/opt/devtools/java/jdk7_64/jre/lib/ext/dnsns.jar:/opt/devtools/java/jdk7_64/jre/lib/ext/sunec.jar:/opt/devtools/java/jdk7_64/jre/lib/ext/sunpkcs11.jar:/opt/devtools/java/jdk7_64/jre/lib/ext/localedata.jar:/home/jgindin/src/GWTShowcase/out/production/GWTShowcase:/home/jgindin/src/gwtproject.org/trunk/build/staging/gwt-2.7.0-test/gwt-user.jar:/home/jgindin/src/gwtproject.org/trunk/build/staging/gwt-2.7.0-test/gwt-dev.jar:/home/jgindin/src/gwtproject.org/trunk/build/staging/gwt-2.7.0-test/validation-api-1.0.0.GA.jar:/home/jgindin/src/gwtproject.org/trunk/build/staging/gwt-2.7.0-test/validation-api-1.0.0.GA-sources.jar:/opt/devtools/IntelliJ/idea-IU-138.2458.8/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain com.google.gwt.dev.DevMode -superDevMode -war "/home/jgindin/.IntelliJIdea14/system/gwt/GWT Showcase.8c87681d/GWTShowcase.f3522f99/run/www" -bindAddress 0.0.0.0 -remoteUI 7901:IntelliJIdea -startupUrl Showcase.html com.google.gwt.sample.showcase.Showcase
Running GPE launcher for GWT-2.6.x version.
Exception in thread "main" java.lang.NoSuchMethodError: com.google.gwt.dev.javac.CompilationStateBuilder.init(Lcom/google/gwt/core/ext/TreeLogger;Ljava/io/File;)V
at com.google.gwt.dev.DevModeBase.doStartup(DevModeBase.java:943)
at com.google.gwt.dev.DevMode.doStartup(DevMode.java:498)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1097)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:863)
at com.google.gwt.dev.DevMode.main(DevMode.java:379)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
I'm guessing that the issue has to do with whatever is outputting the "Running GPE launcher for GWT-2.6.x version" message, but I'm not sure.
For both run configurations, I:
- Unchecked the "Open in browser"
- Added "-bindAddress 0.0.0.0" to the "Dev Mode parameters"
Is this case supposed to work? Or is the GWT 2.7 support not yet fully supported?
请先登录再写评论。
Hello,
this problem with GWT 2.7 is already fixed, the fix will be included in the next IDEA 14 EAP build.
--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"