bug with the new snapshot

95 views
Skip to first unread message

Julien Dramaix

unread,
Oct 2, 2014, 7:34:52 AM10/2/14
to google-web-tool...@googlegroups.com
This morning, I've updated my GWT snapshot to the last one and I'm not able to run the super dev mode (with the flag -superDevMode) for my applications.

The problem comes from that the .nocache.js tries to add the compilation dialog to the body before the body is initialized.

Error:
Uncaught TypeError: Cannot read property 'appendChild' of null
in:
Dialog.prototype.show = function() {
  $doc.body.appendChild(this.__overlay);
  $doc.body.appendChild(this.__dialog);
};

$doc.body is null when the method is called. This method should be called when the html is fully loaded.


If I include the nocache.js script at the end of the body instead of in the head of the html, it works fine.

Julien


Daniel Kurka

unread,
Oct 3, 2014, 1:41:27 AM10/3/14
to google-web-tool...@googlegroups.com
Hi Julien,

I think this is related to us not waiting for the body to be loaded before injecting the recompile.nocache.js.

Can you try: https://gwt-review.googlesource.com/#/c/9451/ and let me know if this fixes your issue?

-Daniel

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CABb_3%3D5%3DMU8--RcXrHwjM8ZSPvB%2B2MG-7nAvF1Sq8BjDEeJ5Kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Katherine Stephens

Julien Dramaix

unread,
Oct 3, 2014, 3:54:16 AM10/3/14
to google-web-tool...@googlegroups.com
Thanks Daniel,

I've tested your patch and it solves the issue

Reply all
Reply to author
Forward
0 new messages