Red lines under GWT imports, but app works fine
Answered
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
Please sign in to leave a comment.
Could you please provide a sample project illustrating the problem? As a workaround you can disable the erroneous inspection.
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
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
It's frustrating when problems happen, you can't find out the root cause and they disappear after doing something else.