有没有办法重置Netbeans中的错误标志? [英] Is there a way to reset the error badges in Netbeans?

查看:138
本文介绍了有没有办法重置Netbeans中的错误标志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在没有实际错误发生的情况下,Netbeans有时会显示错误标志. (也经常在文件夹上)

Netbeans sometimes displays error badges in situations where no actual error occours. (Often on folders, too)

尽管Google发现有许多页面报告了各种Netbeans版本的此问题,但我找不到在不删除并重新创建名称不同的项目(!)的情况下重置错误标志的解决方案.

Although Google finds many pages reporting this issue for various Netbeans versions, I could not found a solution to reset the error badges without deleting and re-creating the project with a different name (!).

除了重新创建项目外,如何删除徽章?

How can I remove the badges besides recreating the project?

Netbeans必须在某个位置存储具有错误标记的文件夹的信息.也许可以删除某种缓存并使用它来完成.

Somewhere Netbeans has to store the information which folder has an error badge. Perhaps it is possible to delete some kind of cache and be done with it.

推荐答案

我自己发现了它:Netbeans错误存储在index子目录中/FaqWhatIsUserdir"rel =" noreferrer> Netbeans用户目录.这是一些.err和.warn文件,其中包含错误和警告消息.

I discovered it myself: The Netbeans errors are cached in the index sub-directory of the Netbeans user directory. Here are the some .err and .warn files, which contain the error and the warning messages.

这也是为什么重新创建具有相同名称的项目时不会遗忘徽章的原因:数据存储在项目外部.

That's also the reason why recreating a project with the same name doesn't get rid of the badges: The data is stored outside of the project.

删除该目录和所有子目录中的所有* .err和* .warn文件,会使Netbeans忘记错误标志,直到由于真正的编译错误而重新创建它们为止.

Deleting all *.err and *.warn files in that directory and all sub directories makes Netbeans forget the error badges until they are recreated because of a real compile error.

PS:准备好从缓存中删除文件后重新扫描项目,但是如果没有其他文件被删除,则应该很快.

PS: Be prepared for a rescan of your projects after deleting files from the cache, but it should be quick if no other files have been deleted.

这篇关于有没有办法重置Netbeans中的错误标志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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