I have seen these spurious error icons show up, too. A quicker workaround is to go to the class whose name was underlined in red (e.g. BatchServiceClient in Gary's screenshot), make a trivial change (e.g. insert and delete a space), and then save the file.
-- Eirik -----Original Message----- From: Thomas Kellerer <[email protected]> Sent: Saturday, August 28, 2021 10:54 AM To: [email protected] Subject: Re: Error in perfectly correct file I think it would also be nice if the cache could be deleted from within NetBeans to avoid a restart. Even better, if that could be done for specific projects. Pieter van den Hombergh schrieb am 28.08.2021 um 13:25: > Had similar issues with other projects. Maven build has no issues, but the > netbeans IDE flags an error. > What helped me is to throw away the netbeans cache content. I did that in > those cases where I had the issue. > Under linux (which is what I use) it is under ~/.cache/netbeans. It would be > nice if we knew the exact file or directory. > > I have added a ticket to jira to make the compiler cache part of the project > directory, so that clearing the cache affects only one project. > > Pieter > > On Sat, Aug 28, 2021 at 12:10 AM Greenberg, Gary <[email protected]> > wrote: > > After I have merged my development branch into master, > Netbeans (12.4) shows me a compilation error in one of my unit test > files.____ > > It says that cannot find the source class for the unit test. See snapshot: > This unit test was not affected by the changes in the project and I run > the maven build, it succeeds.____ > > What do I need to do, to get rid of this error?____ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
