Gwt超级开发模式:重新编译无效。

4
超级开发模式启动成功,但是当我在浏览器中更改代码并尝试重新编译时,GWT会报告以下错误:
GET /recompile/de.marketmaker.iview.mmgwt.mmweb.Mmweb
   Job de.marketmaker.iview.mmgwt.mmweb.DevMmweb_1_4
      starting job: de.marketmaker.iview.mmgwt.mmweb.DevMmweb_1_4
      binding: locale=default
      binding: user.agent=gecko1_8
      Compiling module de.marketmaker.iview.mmgwt.mmweb.DevMmweb
         [ERROR] Current binding properties are expanding to more than one permutation but per-file compilation requires that each compile operate on only one permutation.
      [WARN] recompile failed
      [WARN] continuing to serve previous version

有任何想法为什么会出现这种情况?我找到了下面的帖子,但它没有给出解决方案:https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/5lgtM77-1tM

2个回答

5

当我从GWT 2.6.1升级到2.7.0时,出现了这个问题。

在使用GWT 2.6.0时,我通过点击“Dev Mode On”书签来重新加载应用程序。但是,在使用GWT 2.7.0时,点击书签会导致出现错误。

对我来说,问题通过使用浏览器刷新(F5或cmd+r)得到解决。

希望这能有所帮助。


3
谢谢!关闭然后再打开开发模式也有帮助。但这似乎只是一个解决办法。 - Konstantin Milyutin
在GWT 2.7.0中,不再需要使用书签了。 - El Hoss
不知道,但页面如何理解它应该连接到超级开发模式进程? - Konstantin Milyutin

1

我参与了一个长时间的讨论:

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/google-web-toolkit-contributors/5lgtM77-1tM/rnNdb5UbDB8J

基本上,在旧版的Super Dev Mode中,直接运行添加-noincremental选项对我们有用。
我们还尝试了新的2.7风格的启动Dev Mode方法,它现在默认为SDM。不过我们的应用程序从打包的捆绑包中提供资源,所以看起来新模型无法通过更改.nocache.js文件来拦截应用程序。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接