Eclipse project errors

97 views
Skip to first unread message

Jakob Jarosch

unread,
Feb 2, 2015, 5:18:33 PM2/2/15
to google-web-tool...@googlegroups.com
Hi,
after I've managed to get ANT working I was trying to figure out how to import all those projects into Eclipse.
I followed the instructions in trunk/eclipse/README.txt step by step and finally I got a working workspace.
But I did some changes to the source where I don't know if I did something wrong or there are just some files outdated.
When someone can tell me if the following changes are required, to get the Eclipse projects working, I will make a patch with all those small changes.
Or when some of the changes I did should be fixed in another way I would be happy to know how.


1) Some JSNI-implementations does Eclipse see as an error. Can be fixed be prepending the full package name before the class name.
Error: History could not be resolved to a type | History.java | line 127 | Google Web Toolkit Java Problem
Affected:
- user/src/com/google/gwt/user/cellview/client/CellBasedWidgetImplStandard.java
- user/src/com/google/gwt/user/client/History.java
- user/src/com/google/gwt/user/client/impl/DOMImpl.java
- user/src/com/google/gwt/user/client/Timer.java

2) In a ui binder file a stylesheet can't be resolved: user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml
Error: CSS file com/google/gwt/uibinder/test/client/Menu.css is missing WidgetBasedUi.ui.xml | line 110 | Google Web Toolkit UiBinder Problem

3) In a ui binder some field reference generates an error. I didn't know how to solve that, so I removed it.
Any ideas how to prevent the error in user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml?
Error: Field reference to foo: "bar" is undefined | line 204 | Google Web Toolkit UiBinder Problem

4) I was not able to launch the Hello sample or the Showcase project until I added a classpath entry for the gwt-codeserver project. Otherwise the launch configuration failed to start.
Error: Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.google.gwt.dev.codeserver.CodeServer [...]

Would be great when someone has a look at these changes and suggests if I should submit it as a patch or not.

- Jakob

Jens

unread,
Feb 2, 2015, 6:08:34 PM2/2/15
to google-web-tool...@googlegroups.com
You should revert all your code changes done in 1-3. All code is intentional and the real problem is the Google Plugin for Eclipse which does not understand JSNI shortcut notation and has some trouble with the UiBinder test files. You can safely ignore these errors.

If these errors bug you then you can either disable GPE completely (running a GWTTestCase in Eclipse requires some handwork then) or tell GPE to make these errors just warnings. To configure GPE you can go to Eclipse -> Preferences -> Google -> Errors/Warnings and adjust the settings the way you like.

The classpath fix for Hello and Showcase projects are fine though. Sadly we often forget to update the Eclipse project files.

-- J.

Jakob Jarosch

unread,
Feb 4, 2015, 5:10:30 PM2/4/15
to google-web-tool...@googlegroups.com
Thanks!
I created a patch solving the classpath issues and adding a short description on how to deal with those false positive errors in Eclipse.


- Jakob
Reply all
Reply to author
Forward
0 new messages