eclipse代码有错误,项目不显示红叉
一、背景
修改一些现有方法,比如对现有方法,增加一个参数,使用到该方法的类会报错。但是项目中不显示红叉,非常不方法排查。
二、解决方案
2.1 全局配置
window->preferences->java->compiler->building->build path problems-->选中abort Incomplete build path/Circular dependencies 这两个选项修改为Warning
2.2 局部配置
在项目上右击-->properties-->java compiler-->building-->enable project specific setting-->build path problems-->选中abort Incomplete build path/Circular dependencies 这两个选项修改为Warning
2.3 自动编译
记得把自动编译勾上。 project >>Build Automatically
2.3 视图切换(重要)
上面配置都试过了,有的时候还是没有错误提示。
那很有可能是视图错了,“Navigator”是不会在项目上显示红叉的,
建议使用Package Explor
