导航器视图中未显示错误符号 [英] Error symbol not shown in Navigator view

查看:147
本文介绍了导航器视图中未显示错误符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse进行Java开发:



Eclipse Java EE IDE for Web Developers。
版本:Indigo服务版本1
构建ID:20110916-0149



目前的导航器视图如果文件中有语法错误,则不显示小错误符号(红色背景上的白色 x )。



一个使用单个java类的小型java项目。有意创建的语法错误导致问题视图中的条目,错误符号显示在代码视图中,在文件选项卡 中, b

自动生成已激活。



任何想法如何在中显示错误装饰器导航器视图?这是个bug吗?谢谢!

解决方案

Imo,这是一个错误。实际上,它与SR1一起出现。如果您重新安装香草Eclipse Indigo - 错误装饰器会回来。这将是巨大的,如果他们修复它,因为目前这是相当烦人的...



编辑:哦,所以,在这方面,这不是一个错误。导航器视图的预期行为是不显示与Java代码有效性相关的任何标记。以前(长期存在的)事态是一个错误,并且被这个错误修复了: https:// bugs.eclipse.org/bugs/show_bug.cgi?id=291498



不幸的是(imo)这个,显然不会随着这个bug报告而改变 https://bugs.eclipse.org/bugs/show_bug.cgi?id=364660 )被RESOLVED WONTFIX关闭。



官方建议是使用Package或Project Explorer视图。从我的Project Explorer生活的尝试来看,它仍然不如Navigator那么方便,尽管它可以被调整为与Navigator相当接近。
我还尝试使用以前的3.7.0版本的导航器软件包提供Eclipse 3.7.1。虽然我不是100%肯定这是一个很好的解决方案,它对我有用。


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!

解决方案

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.

这篇关于导航器视图中未显示错误符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆