gwt-plugins / gwt-eclipse-plugin

GWT Eclipse Plugin Documentation
http://gwt-plugins.github.io/documentation/
Eclipse Public License 1.0
115 stars 49 forks source link

GWT recompilation does not occur if you modify a properties file located on a submodule #484

Open cronostorie opened 6 months ago

cronostorie commented 6 months ago

Description:

When I modfiy a file included in a client module and when I reload the page through the browser I expect the GWT plugin automatically recompile it. However (at least in the case of messages and constants) this does not happen if the files that are modified they are placed on submodules.

Software on which the test was performed:

- Java version: JDK 17.0.6 Oracle Corporation 2023-01-17
- Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)
    Version: 2024-03 (4.31.0)
    Build id: 20240307-1437
- Tomcat: 10.1.11
- GWT Eclipse Plugin 4.0.1.202402121339
- GWT 2.11.0

The test application (attached):

The application consists of 2 modules:

The messages are present on the testShared submodule in the MyMessages.properties file.

Steps to reply:

  1. Prepare Eclipse 2024-03 with JDK 17, Tomcat 10.1 and GWTPlugin 4.0.1.202402121339
  2. Import the 2 modules (testGWT and testShared) into Eclipse
  3. Create a GWT Development Mode (CodeServer) configuration and set the appropriate -launcherDir option. In my environment: -launcherDir X:\Code\projBase.metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\testGWT test.gwt.sample.TestGWT
  4. Run testGWT under the Tomcat server you configured in Eclipse.
  5. Load the application from browser: http://localhost:8080/test/testgwt/TestGWT.html
  6. When you see the "GO4" button, click to view the message: "This is my message"
  7. Open the MyMessages.properties file and change the message1 message to "This is my message updated"
  8. Reload the application from browser: http://localhost:8080/test/testgwt/TestGWT.html
  9. Click on the "GO4" button to view the message

Expected results:

testGWT_2.zip

protoism commented 3 months ago

@niloc132 while I'm surprised that git submodules have anything to do with GWT, this issue seems more related to GWT SDK

niloc132 commented 3 months ago

I haven't had time to test, as I don't use eclipse. If someone can repro with/without eclipse and confirm that it fails even without eclipse (and provides some steps to repro...), I'll be happy to give it a shot.

Almost certainly this is a case of a copy of the stale source file also being on the source path - either eclipse copied it and left it, or one of the earlier build steps did.