Thursday, April 17, 2014

Re: Setup Eclipse workspace for core development

First, you should probably subscribe and post to https://groups.google.com/d/forum/google-web-toolkit-contributors for questions related to developing GWT itself (as opposed to developing with GWT)
Cc'ing that group, please follow-up there.

On Wednesday, April 16, 2014 4:03:20 PM UTC+2, Stephan Beutel wrote:
Hello,

I'm trying to setup a working Eclipse workspace with the GWT core like described in 
the included README.txt which comes with the GWT source code.

In the last 3 weeks I tried out several Eclipse distributions without success.

The main questions are:
Which Operationg systems are supported? Windows7?

In theory, any; though most contributors use Mac or Linux (in other words: it's supposed to work on Windows, but not many people use it so it's mostly "untested" there)
 
Which Java version must be installed?

Java 7; either OpenJDK or Oracle JDK (I use OpenJDK).
You should be able to use Java 6 but some tests would fail: https://code.google.com/p/google-web-toolkit/issues/detail?id=8574
 
Which Eclipse distrubition and version?

Any (in theory at least).
I still use an oldish Indigo, but I think I tried once with Juno without any problem.
I personally use a "for Java Developers" edition (no JavaEE here).
 
Which plugins required and which version?

Google Plugin for Eclipse is not required, but highly recommended (helps to edit JSNI methods and run tests right from Eclipse)
The Checkstyle plugin can be used to check the code right in Eclipse instead of requiring "ant checkstyle". I personally don't use it as it (used to) slow down Eclipse a lot. Checkstyle is automatically run on your patches before they can be merged anyway.
 
Is there any working description how to setup the workspace to develop GWT core? The existing one is very 
misunderstanding, e.g. changing project properties before importimg the project (gwt-user)?????

Hmm right, the "annotation processor" thing should come later.
 
The ANT build of the trunk works properly.

I have to declare a bug in GWT and I also want to fix it.

Great! Welcome to the developers' community!
 
Normally we uses the Springsource Toolsuit 3.5.0 (based on Eclipse 3.8.2) in our company, so it would be the best to get 
the GWT source into this IDE.

Every time I end up with the same errors:

The type java.util.Map<java.lang.String,java.lang.Integer> cannot be used here BaseFooProxy.java /gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 79 Annotation Problem (Java 6 processor)
Cannot validate this method because the domain mapping for  the return type (java.util.Map<java.lang.String,java.lang.Integer>) could not be resolved to a domain type

Hmm yes, I think the requestfactory-apt.jar in GWT_TOOLS is stale. Does that fix it if you configure Eclipse to use the one from GWT_ROOT/build/out/… (and/or you copy that JAR to your GWT_TOOLS checkout)
If that dies it, I'll ask for the JAR in GWT_TOOLS to be updated (I don't have commit rights to GWT_TOOLS).

That said, if you don't intend to work on RequestFactory, you can also safely disable annotation processing.
 
com.google.gwt.lang.JavaClassHierarchySetupUtil could not be resolved to a type UnloadSupportEnabled.java /gwt-user/core/src/com/google/gwt/core/client/impl line 63 Google Web Toolkit Java Problem
com.google.gwt.lang.JavaClassHierarchySetupUtil could not be resolved to a type UnloadSupportEnabled.java /gwt-user/core/src/com/google/gwt/core/client/impl line 63 Google Web Toolkit Java Problem
com.google.gwt.lang.JavaClassHierarchySetupUtil could not be resolved to a type UnloadSupportEnabled.java /gwt-user/core/src/com/google/gwt/core/client/impl line 63 Google Web Toolkit Java Problem
CSS file com/google/gwt/uibinder/test/client/Menu.css is missing WidgetBasedUi.ui.xml /gwt-user/core/test/com/google/gwt/uibinder/test/client line 110 Google Web Toolkit UiBinder Problem

I think you can ignore those. The Google Plugin for Eclipse does its best to warn you of errors in your code, but there are some false positives.

Note that we intend to move from Ant to Gradle in the near future so that it'll be much easier to configure an IDE (whichever one: Eclipse, IntelliJ IDEA, etc.) but in the mean time, feel free to submit patches to the eclipse/README.txt file too!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment