Selena + GWT
Hello.
I?m using the latest Selena EAP, and Google Web Toolkit 1.3.3 (GWT),
and when executing IDEA, the latest GWT application loads and it shows
errors saying that the com.google.gwt.core.client.EntryPoint and others
imports are errors. But they aren?t. I can compile/run the application.
If I remove the GWT package and add it again (I need to do this twice)
then IDEA doesn?t show that errors. (note: it happen with other Selena
builds too)
Other problem is that when using native methods, when using external
java variables like "this.@com.app.client.classname:methodname()()" it
shows that line as an error, is there any way to tell IDEA to don?t
show this specific error? I tried disabling the error checking in that
line but it didn?t work.
please, add intellisense inside the parameters of
"methodname(Lcom/java/<!intellisense here!>....)" !!
It will be very useful to have instellisense after the ?@? in that
cases too.
Thanks,
Ariel
Please sign in to leave a comment.
Hello Ariel,
What error messages were shown for imports?
Support for these expressions is planned for Selena (http://www.jetbrains.net/jira/browse/IDEADEV-8200).
The error shows as a tip window over (for example) the line:
"import com.google.gwt.core.client.GWT;"
the tip says:
class 'com.google.gwt.core.client.GWT' is not presented in JRE
Emulation Library so it cannot be used in client code
I'm using latest 1.3.3 GWT. something strange is that for example in
the next 4 lines:
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.*;
import com.google.gwt.user.client.*;
it marks as errors the first 2 lines, but not the last two lines (with
the .*)
HTH,
Ariel
Hello Ariel,
Are you sure that gwt-user.jar is added to classpath of your module?
Yes. it is, if I remove the entire package, and add it again, IDEA
recognize it. so it is there.
In the package, I have selected the path of the .jar files AND the path
to the source files.
Nikolay Chashnikov (JetBrains) wrote:
Hello Ariel,
Please press Ctrl+B on a higlighted reference (e.g. EntryPoint). IDEA
should jump to EntryPoint class. Then press Alt+F1, 1 to select this class
in the project view and check whether it is located under gwt-user.jar and
gwt-user.jar contains User.gwt.xml file in com/google/gwt/user package.
>> Hello Ariel,
>>
>> Are you sure that gwt-user.jar is added to classpath of your module?
>>
wow, no... it is in the gwt-servlet.jar
I removed it and now, it seams to work. Sorry, I thought I needed to
add it, because it needs to be used when using RPC.
Thanks,
Ariel
Thank you all! This is a very useful thread :)
true.. i had exactly the same problem.
is there an updated documentation of using GWT with idea 7.0M2 somewhere?
i had to guess a lot to get the sample project working..