DavidSh
DavidSh

Reputation: 21

GWT module [name] may need to be (re)compiled error

Installed latest Eclipse (Luna) and added latest GWT plugin (no Maven), any GWT project that I try to run in Eclipse gives the same error

GWT module [name] may need to be (re)compiled.

Tried the projects that worked in older versions of eclipse before, same error.

Tried deleting ALL generated files/cache files and clearing browser cache, as per old Stackoverflow recommendations.

Tried different versions of JDK.

Tried reinstalling everything from scratch, creating new workspace and new empty project using web-app Eclipse wizard, the same result.

No errors in logs.

Any ideas would be appreciated. Thanks.

Upvotes: 0

Views: 2759

Answers (2)

DavidSh
DavidSh

Reputation: 21

Solved it by deleting everything, installing a new GWT 2.7 and launching the project in super-dev mode. Apparently, unless you launch in supr-dev mode, correct Javascript is not generated at all.

Upvotes: 2

Momo
Momo

Reputation: 2491

This is usually an issue in cached compiled files. Try this:

  • Delete the content of the folder /war/[application name]
  • Clear the browser cache
  • Delete the content of gwt-unitCache folder
  • In Eclipse : Project > clean...
  • Compile the application : right click on the project > Google > GWT compile

Edit

GWT also create some files in the temp folder of the OS. Assuming you're using Windows, run this batch script that I use sometimes to cleanup GWT cache.

Upvotes: 2

Related Questions