tags:

views:

26

answers:

1

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

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?

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.

+2  A: 

I discovered it myself: The Netbeans errors are cached in var/cache/index/. Here are the some .err and .warn files, which contain the error resp. warning messages.

That's also the reason, why recreating a project with the same name doesn't get rid of the badges.

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: 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.

DR