simplicityitself / grails-gwt

New Grails GWT Plugin
Other
23 stars 18 forks source link

run-gwt-client not work and re-compile modules cause error #28

Closed lyhcode closed 10 years ago

lyhcode commented 10 years ago

Env:

I've startup server using:

  1. run-app
  2. run-gwt-client

The Development Mode window shown. I think it's in a DevMode.

But after GWT class [src/gwt/com/example/client/BookStore.java] modified.

I can't see a modified version of GWT page with browser.

Is gwt plugin doesn't re-compile after source code change?

I try to manually re-compile with compile-gwt-modules command.

But after compile done, grails terminal show below messages:

java.io.FileNotFoundException: URL [file:/Users/lyhcode/koobe/BookStore/web-app/gwt/com.example.BookStore/FC29598B4828693BC9F56A30980C5B0A.cache.html] cannot be resolved in the file system for resolving its last-modified timestamp

I must stop-app and run-app again to see a last modified results.

Is my process flow wrong or some bug existed?

Please help. Thank you.

daviddawson commented 10 years ago

What is the URL that you are visiting in the browser?

you need to append ?gwt.codesvr=127.0.0.1:9998

When you visit the URL, you should see a new tab added in the GWT dev mode user interface, for you browser (eg, 'chrome')

If you don't see a tab for your browser connection, you aren't running in development mode. The culprits are either that the browser plugin is not installed, or the URL param above is not present or incorrect.

the GWT dev mode loads your app in as Java and reloads changes every time the page is refreshed.

Hope that helps

On 6 November 2013 04:34, Yan-hong Lin notifications@github.com wrote:

Env:

  • Mac OS X 10.8
  • java version "1.6.0_65"
  • Grails 2.2.3
  • GWT 2.5.1

I've startup server using:

  1. run-app
  2. run-gwt-client

The Development Mode window shown. I think it's in a DevMode.

But after GWT class [src/gwt/com/example/client/BookStore.java] modified.

I can't see a modified version of GWT page with browser.

Is gwt plugin doesn't re-compile after source code change?

I try to manually re-compile with compile-gwt-modules command.

But after compile done, grails terminal show below messages:

java.io.FileNotFoundException: URL [file:/Users/lyhcode/koobe/BookStore/web-app/gwt/com.example.BookStore/FC29598B4828693BC9F56A30980C5B0A.cache.html] cannot be resolved in the file system for resolving its last-modified timestamp

I must stop-app and run-app again to see a last modified results.

Is my process flow wrong or some bug existed?

Please help. Thank you.

— Reply to this email directly or view it on GitHubhttps://github.com/simplicityitself/grails-gwt/issues/28 .

daviddawson commented 10 years ago

Closed due to no response. Feel free to re-open.