Gwt超级开发模式:重新编译不起作用

时间:2014-12-03 09:16:58

标签: gwt gwt-super-dev-mode

超级开发模式成功启动,但在我对代码进行更改并尝试从浏览器重新编译之后,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 个答案:

答案 0 :(得分:5)

当我从GWT 2.6.1切换到2.7.0时,我遇到了这个问题。

使用GWT 2.6.0我按“Dev Mode On”书签重新加载应用程序。使用GWT 2.7.0按书签会导致此错误。

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

希望有所帮助。

答案 1 :(得分:1)

我在这里进行了长时间的讨论:

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

基本上,在旧式直接运行超级开发模式(SDM)中添加-noincremental选项对我们有用。

我们还尝试了新的2.7风格启动开发模式,现在默认为SDM。我们的应用程序从打包的bundle中提供资源,所以看起来新模型不能通过更改.nocache.js文件来拦截应用程序