Removing the SuperDevMode code server prompt

122 views
Skip to first unread message

steve Zara

unread,
Sep 27, 2015, 5:14:11 PM9/27/15
to GWT Users
An irritation for me when using SuperDevMode is the prompt that appears when the application starts before the code server is ready.  I have patched my copy of gwt-dev to remove this prompt and keep the code cycling until the code server starts.  What I'd ideally like to do is to have this as an option that can be configured from gwt.properties.  If this option is already present somewhere and I haven't noticed it, I'd like to hear.  If the option isn't already present and this fix would be of interest to others, I'll put some more work in and submit it as new code for GWT.

Jens

unread,
Sep 27, 2015, 6:22:50 PM9/27/15
to GWT Users
Not sure what you mean. But I know that there was a commit that changed DevMode to wait until SuperDevMode CodeServer and Jetty/Tomcat have been fully started before continuing. Obviously that does not prevent you from visiting the URL of your app before DevMode has been fully started.

-- J.

steve Zara

unread,
Sep 27, 2015, 10:08:08 PM9/27/15
to google-we...@googlegroups.com
That sounds like what I have been after.  I can't see that feature in the 2.7.0 download - is it in the 2.8 builds?

On 27 September 2015 at 23:22, Jens <jens.ne...@gmail.com> wrote:
Not sure what you mean. But I know that there was a commit that changed DevMode to wait until SuperDevMode CodeServer and Jetty/Tomcat have been fully started before continuing. Obviously that does not prevent you from visiting the URL of your app before DevMode has been fully started.

-- J.

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/4G6IaSURdHY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Jens

unread,
Sep 28, 2015, 4:23:18 AM9/28/15
to GWT Users, st...@serf.org

That sounds like what I have been after.  I can't see that feature in the 2.7.0 download - is it in the 2.8 builds?

I would say so as I use it and never had an issue with any prompts.

-- J.

Thomas Broyer

unread,
Sep 28, 2015, 5:22:09 AM9/28/15
to GWT Users, st...@serf.org


On Monday, September 28, 2015 at 10:23:18 AM UTC+2, Jens wrote:

That sounds like what I have been after.  I can't see that feature in the 2.7.0 download - is it in the 2.8 builds?

I would say so as I use it and never had an issue with any prompts.

Actually no. It is in 2.7 [1], and has since been made synchronous [2] (so you possibly wait a little longer).

But if you're using CodeServer rather than DevMode, you have to wait before loading the page; that code is only about enabling the "Launch Default Browser" and "Copy to Clipboard" buttons in the DevMode UI.

Jens

unread,
Sep 28, 2015, 5:39:54 AM9/28/15
to GWT Users, st...@serf.org

Actually no. It is in 2.7 [1], and has since been made synchronous [2] (so you possibly wait a little longer).

But if you're using CodeServer rather than DevMode, you have to wait before loading the page; that code is only about enabling the "Launch Default Browser" and "Copy to Clipboard" buttons in the DevMode UI.



Ah I see, well I start SDM through IntelliJ which uses the DevMode class (with -noserver) and the browser is launched when everything is ready.

-- J.

steve Zara

unread,
Oct 13, 2015, 9:46:36 PM10/13/15
to GWT Users, st...@serf.org

This is the dialog I mean: 

Thomas Broyer

unread,
Oct 14, 2015, 3:20:09 AM10/14/15
to GWT Users
One question remains unanswered: how are you launching SDM / loading the page that you're facing this dialog box?

IIRC, the reason it doesn't automatically reloads is to avoid hiding the fact that the CodeServer isn't running at all (and you'd wait forever). I'd suggest deep-diving in the commit history and review comments to find out.

steve Zara

unread,
Oct 14, 2015, 3:58:21 AM10/14/15
to google-we...@googlegroups.com
I'm using the Netbeans GWT plugin.

On 14 October 2015 at 08:20, Thomas Broyer <t.br...@gmail.com> wrote:
One question remains unanswered: how are you launching SDM / loading the page that you're facing this dialog box?

IIRC, the reason it doesn't automatically reloads is to avoid hiding the fact that the CodeServer isn't running at all (and you'd wait forever). I'd suggest deep-diving in the commit history and review comments to find out.
Reply all
Reply to author
Forward
0 new messages