Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error symbol not shown in Navigator view

Tags:

java

eclipse

I use Eclipse for java development:

Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 1 Build id: 20110916-0149

Currently the Navigator view does not show the small error symbol (white x on red background) if there is a syntax error within the file.

I tested this with a small java project with a single java class. An intentionally created syntax error lead to an entry in Problems view and an error symbol is shown in code view, in file tab and in Package Explorer, but not in Navigator view (neither file level nor folder level).

"Build automatically" is activated.

Any ideas how to display the error decorator also in Navigator view? Is it a bug maybe? Thanks!

like image 220
TechnoCore Avatar asked Oct 19 '11 13:10

TechnoCore


1 Answers

Imo, that's a bug. It, actually, appeared with SR1. If you reinstall the vanilla Eclipse Indigo - the error decorator would come back. It would be great, if they'd fix it, as currently it's quite annoying...

EDIT: Oook, so, oficially, it's not a bug. The intended behaviour of the Navigator view is to not display any markers related to Java code validity. The previous (long standing) state of affairs was a bug, and was fixed by this bugfix: https://bugs.eclipse.org/bugs/show_bug.cgi?id=291498

Unfortunately (imo) this, apparently won't change as this bug report ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=364660 ) was closed with RESOLVED WONTFIX.

The official suggestion is to use either Package or Project Explorer views. From my attempts to live with Project Explorer it's still not as convinient as the Navigator was, although it can be tuned to be rather close to Navigator. I've also tried to feed Eclipse 3.7.1 with the Navigator bundles from the previous 3.7.0 release. While I'm not 100% sure it's a good solution it worked for me.

like image 84
Iger Avatar answered Sep 18 '22 13:09

Iger