This is definitely a bug and you should be able to switch between the two
versions.
As a work around try the following:
1) Delete the current war/MODULE/hosted.html file
2) Re-run hosted mode and see the failure and stop hosted mode (this causes
a new hosted.html file with the right version to be generated).
3) Touch the newly generated war/MODULE/hosted.html file.
4) Relaunch hosted mode (this should succeed)

On Wed, Oct 7, 2009 at 1:15 PM, Sky <[email protected]> wrote:

>
> I get this error when I switch from the GWT compiled from Trunk back
> to 1.7.1 or any previous versions.
>
> I only know two ways to solve it:
>
> 1) Open up war\projectname\hosted.html and edit line 16 from
>     var $hostedHtmlVersion="2.0";
>           to
>     var $hostedHtmlVersion="1.6";
>
> (which I think is a terrible hack because I don't know what other
> differences there could be in that file or for that matter the entire
> project that isn't being correctly changed back to the previous
> version...)
>
> 2) Create a whole new project from scratch that is using GWT 1.7.1 and
> copy all my files from the broken project into this new one and scrap
> the broken one. This just seems dumb.
>
> So why can't I switch between GWT Trunk and the "stable" version
> seamlessly?
>
> It has nothing to do with browser caching because the actual
> hosted.html file in the project has the value 2.0 instead of 1.6. I
> did try clearing the browser cache though.
>
> Any help would be very much appreciated.
>
> On Oct 7, 10:29 am, Miguel Méndez <[email protected]> wrote:
> > Here is some more information.  I ran into this problem while testing the
> > plugin against GWT 1.7, trunk, and 2.0 MS1.
> > It looks like whenever we generate the hosted.html we use the timestamp
> of
> > that file as it was inside of the gwt-dev-PLAT.jar.  It would seem to me
> > that we want to touch that file every time it is copied/generated.
> >
> > On Mon, Sep 21, 2009 at 3:47 PM, John Tamplin <[email protected]> wrote:
> > > On Mon, Sep 21, 2009 at 3:38 PM, Ray Ryan <[email protected]> wrote:
> >
> > >> Time to put it up on rietveld again? Or is there already an url?
> >
> > > Same one is still there -
> http://gwt-code-reviews.appspot.com/56807/show
> >
> > > --
> > > John A. Tamplin
> > > Software Engineer (GWT), Google
> >
> > --
> > Miguel
>
> >
>


-- 
Miguel

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to