简体   繁体   English

Eclipse CDT显示错误错误图标

[英]Eclipse CDT Showing False Error Icons

Eclipse CDT frequently shows many error icons in front of file names which suggest the code analyser discovered some errors. Eclipse CDT经常在文件名前面显示许多错误图标,这表明代码分析器发现了一些错误。 However, upon opening the file, the error icon disappear! 但是,打开文件后,错误图标消失了! This seems to happen after I run the Code Analyser and/or the Indexer, and it seems to happen on all files. 在我运行代码分析器和/或索引器之后,这似乎发生了,并且似乎在所有文件上都发生了。 This is really annoying because it makes the icons useless as I cannot tell from the icons whether the files have errors or not; 这确实很烦人,因为它使图标无用,因为我无法从图标中分辨出文件是否有错误。 I have to open all files one by one to know which files have problems. 我必须一一打开所有文件,以了解哪些文件有问题。 Any idea why this is happening and how to fix it? 知道为什么会这样以及如何解决吗? Thanks! 谢谢!

Try rebuilding index, and then close and open project to force icon refresh. 尝试重建索引,然后关闭并打开项目以强制刷新图标。

If this doesn't fix the issue. 如果这样不能解决问题。 You shall check if the include paths are valid. 您应检查包含路径是否有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM