I'm not a GWT expert, but I'm pretty sure that if you exit hosted mode,
whatever dynamic structures are created to communicate w/ your IDE are
lost. Hence the need to recompile on the next invocation.
> Or is my only avenue to try to get the debugger to hot-fix the code
> using the "Apply Code Changes" button (in the Netbeans debugger) and
> then clicking the "refresh" button in hosted mode?
>
> The reason that I ask this last question is that, even if I make a
> trivial change like just changing some text that appears in my
> interface, I get an exception when I click "Apply Code Changes". (In
> the example below, I merely changed a label on my login panel from
> "Username" to "Usern4me" so that I could visually see that the hotfix
> was applied):
>
Yeah, I've noticed this too, only I haven't had the impetus to ask it of
the list. I just assume that the restart is necessary. Maybe some GWT
pundit knows what we're doing wrong...
Do you know about the <set-property> tag? If not, try adding the
following to your module.gwt.xml file:
<set-property name="user.agent" value="gecko"/>
using the appropriate browser ID for "value". At least you'll only wait
for one permutation rather than the (probably) default five. Don't
forget to remove the tag before compiling for production. I think Vitali
wrote in some earlier discussion describing how to make this
set-property a compile-time decision.
On 04/13/2009 02:48 PM, pohl wrote:
> Thank you for your responses. I see that the build-gwt.xml ANT
> script in my GWT4NB-based project does have a "-noserver" argument in
> the block that invokes GWTShell, so at least one compile step is
> necessary, as per Jeff's observation, to copy those resources to the
> server.
>
> I'm still at a loss in my attempt to understand exactly what
> conditions are necessary to get this much-promised "fast turnaround"
> in hosted mode. If I stop the debugger and debug my project again
> (even if I make absolutely no changes to the source code) the
> GWTCompiler runs again. Is this a failing in Netbeans and/or GWT4NB?
I'm not a GWT expert, but I'm pretty sure that if you exit hosted mode,
>
whatever dynamic structures are created to communicate w/ your IDE are
lost. Hence the need to recompile on the next invocation.
> Or is my only avenue to try to get the debugger to hot-fix the code
> using the "Apply Code Changes" button (in the Netbeans debugger) and
> then clicking the "refresh" button in hosted mode?
>
> The reason that I ask this last question is that, even if I make a
> trivial change like just changing some text that appears in my
> interface, I get an exception when I click "Apply Code Changes". (In
> the example below, I merely changed a label on my login panel from
> "Username" to "Usern4me" so that I could visually see that the hotfix
> was applied)
Yeah, that must be the issue. When using noserver mode, it must be that
the hosted mode server always wants a restart. ISTR that when I first
started using GWT, hosted mode would "just work" with a press of the
reload. Now that I'm using noserver almost exclusively, the reload of
the hosted mode server is SOP.
I don't remember NetBeans well enough to comment on how it interacts w/
hosted mode.
Also, remember that GWT does not implement the entire JRE. From the
looks of the above error, you might be hitting that limitation, i.e.
"delete method not implemented", as well.
That blows.
Don't forget about the change to MODULE.gwt.xml to reduce the
compilation permutation count. It can make a difference for large values
of LOC,