tags:

views:

224

answers:

4

[Note: There is another thread about this problem but it did not answer the question.]

For one specific project in Eclipse, the problems view does not show errors. It shows warnings but it does not show errors. The other projects do show errors (and everything else). For that problematic project, I can see the red squiggly error line in the files. However, the directory structure does not show an error icon and the error is not populated in the Problems View.

Any ideas?

A: 

You'll likely need to change the filter on the Problems view to see the errors. There's a downward pointing arrow in the upper right corner of the panel. Click it -> Configure Contents..., and in the Scope make sure "On any element" is selected.

Neal Swearer
Tried it, that hasn't worked.
Jack
At first I was thinking this too, but if there is no error icon anywhere in the directory structure, it's probably something else (edit: as Jack has confirmed).
Chris
Another thing you can check is that all types of errors are displayed in the Problems view.
Neal Swearer
A: 

I'm guessing that the build path for that project is lacking a core library. E.g. if it's a Java project there may not be a JRE/JDK assigned to it.

For a Java project, check this: Properties > Java Build Path > Libraries (this may differ depending on the version of Eclipse, I'm using 3.2.1 at the moment)

There should be a JRE or JDK listed here.

Chris
The JRE is listed. Does it matter, JDK or JRE?
Jack
Ah, darn. (No, it doesn't matter.)
Chris
+1  A: 

For anyone else who is having this problem, I have found the answer:

Make sure that Eclipse recognizes your project as a Java project. Specifically, under Project Properties ensure that you have a Java Builder that is checked.

That way, your project will be built and you will see errors in the Problems view.

Jack