Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do errors no longer appear in Eclipse's package explorer?

My project used to be fine - errors showed up in the file margin, the editor breadcrumb, the problems view and in the package explorer tree as little red X marks.

Somewhat spontaneously though, it's stopped working properly.

If I introduce an error into my code, it shows up in the file margin, and nowhere else. It takes a 'project clean' to make the red X's show up elsewhere.

Then if I fix the problem, the error is cleared from the file margin but the red marks persist elsewhere until I do another clean.

Why is it no longer showing errors properly in an automatic way?

I'm using Eclipse 3.5

like image 351
izb Avatar asked Nov 17 '09 20:11

izb


People also ask

Why is Eclipse not showing errors?

You need to open the eclipse Markers view ( Window->Show View->Markers ), it will show all errors about your project, if you correct all the errors, your problem will most likely be solved.

How do I show errors in Eclipse?

From the main menu, select Window > Show view > Other. Then select General > Error Log. The error log is displayed, showing the following information for each error: The status of the error (for example, error or warning)

How do I fix package explorer in Eclipse?

You could try holding down Ctrl + F7 to see a list of all views, then up/down arrow to the View. If Package Explorer is in the list it has been minimised or something. If you select it and still can't see it, try Window → Reset Perspective... to restore all views to their defaults.


3 Answers

Did you uncheck Build Automatically?

like image 146
matt b Avatar answered Oct 02 '22 23:10

matt b


I had a similar problem. I imported a project which also uses aspectj. compile errors were shown in the editors, but not in the package/navigator-explorers. And the project was marked as java-project, maven2 and aspectj.

Build path seemed ok.(jre was there, maven and aspectj.)

After long search i found that in the .project file the following entry was missing:

    <buildCommand>
        <name>org.eclipse.jdt.core.javabuilder</name>
        <arguments>
        </arguments>
    </buildCommand>

pasted that in and problem was solved!

like image 27
Daniel Avatar answered Oct 02 '22 23:10

Daniel


Try fixing your build path, Java compiler, JRE first. If still no luck, You may want to take a look at project Properties-->Builders. Make sure "Java Builder" is there.

like image 22
J - L Avatar answered Oct 02 '22 23:10

J - L