Eclipse问题视图不显示错误 [英] Eclipse Problems View doesn't show Errors

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

问题描述

[注意:有一个关于这个问题的线程,但没有回答这个问题。]



对于Eclipse中的一个特定项目,问题视图不显示错误。它显示警告,但它不显示错误。其他项目确实显示错误(和其他一切)。对于这个有问题的项目,我可以看到文件中的红色波峰错误行。但是,目录结构没有显示错误图标,并且错误视图中未填充错误。



任何想法?

解决方案

对于有任何问题的人,我已经找到答案:



确保Eclipse识别您的项目作为Java项目。具体来说,在项目属性下,确保您已经选中了一个Java Builder。



这样,您的项目将被构建,您将在问题视图中看到错误。 / p>

[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?

解决方案

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.

这篇关于Eclipse问题视图不显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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