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

查看:30
本文介绍了有没有办法重置 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 错误缓存在 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天全站免登陆