Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
282 views
in Technique[技术] by (71.8m points)

java - Error symbol not shown in Navigator view

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!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...