Red lines under GWT imports, but app works fine

Using IDEA 8.1 on OS X with Java 5.

I've added the GWT Facet to my project and I'm successfully able to run tests for my app. When I add new GWT classes, IDEA will successfully import them. However, there's a red-line under all GWT imports and when I mouseover, I see errors like the following.

Class 'com.google.gwt.core.client.EntryPoint' is defined in module 'com.google.gwt.core.Core' which is not interited in module 'com.mycompany.Application'.

In my Application.gwt.xml, I have <inherits name="com.google.gwt.user.User"/> which inherits the core module.

This error doesn't seem like a real error. How can I fix/ignore it?

Thanks,

Matt

2 comments
Comment actions Permalink

Could you please provide a sample project illustrating the problem? As a workaround you can disable the erroneous inspection.

Using IDEA 8.1 on OS X with Java 5.

I've added the GWT Facet to my project and I'm successfully able to run tests for my app. When I add new GWT classes, IDEA will successfully import them. However, there's a red-line under all GWT imports and when I mouseover, I see errors like the following.

Class 'com.google.gwt.core.client.EntryPoint' is defined in module 'com.google.gwt.core.Core' which is not interited in module 'com.mycompany.Application'.

In my Application.gwt.xml, I have <inherits name="com.google.gwt.user.User"/> which inherits the core module.

This error doesn't seem like a real error. How can I fix/ignore it?

Thanks,

Matt

---
Original message URL: http://www.jetbrains.net/devnet/message/5232514#5232514



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

I originally created my project with the gwt-maven plugin. I created a new project using its archetype.

http://gwt-maven.googlecode.com/svn/docs/maven-googlewebtoolkit2-plugin/archetype.html

However, the error doesn't happen there. I tried closing and re-opening my project and now it's gone there too. Strange.

Thanks for your help! ;-)

Matt

0

Please sign in to leave a comment.