Saljack opened a new issue, #8262: URL: https://github.com/apache/netbeans/issues/8262
### Apache NetBeans version Apache NetBeans 24 ### What happened I still have some issues with generated sources from annotation processors or openapi-generator-maven-plugin. I am pretty sure that everything is configured correctly and sometimes it works. But sometimes it is completely broken and I am not able to fix it. Generated source folders are correctly visible in projects but if I try to open them but there are empty.  I checked netbeans log and I see that there were indexed: ``` WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\.openapi-generator INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\.openapi-generator took: 73 ms (New or modified files: 4, Deleted files: 0) [Adding listeners took: 0 ms] WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\openapi INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\openapi took: 285 ms (New or modified files: 42, Deleted files: 0) [Adding listeners took: 0 ms] WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\.github INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\.github took: 61 ms (New or modified files: 1, Deleted files: 0) [Adding listeners took: 0 ms] WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\docs INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\docs took: 84 ms (New or modified files: 11, Deleted files: 0) [Adding listeners took: 0 ms] WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\api INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\api took: 84 ms (New or modified files: 1, Deleted files: 0) [Adding listeners took: 0 ms] WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\annotations INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\annotations took: 80 ms (New or modified files: 1, Deleted files: 0) [Adding listeners took: 0 ms] WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\src INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\src took: 106 ms (New or modified files: 4, Deleted files: 0) [Adding listeners took: 0 ms] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\src\main\java took: 1,351 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\src\test\java took: 60 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms] WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\gradle INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\gradle took: 60 ms (New or modified files: 2, Deleted files: 0) [Adding listeners took: 0 ms] INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 30 source roots took: 2,970 ms (New or modified files: 66, Deleted files: 0) [Adding listeners took: 0 ms] ``` For example `target\generated-sources\openapi` ``` WARNING [org.netbeans.modules.java.source.indexing.JavaIndex]: Ignoring root with no ClassPath: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\openapi INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Users\tpoledny\Documents\NetBeansProjects\GenerateSources\target\generated-sources\openapi took: 285 ms (New or modified files: 42, Deleted files: 0) [Adding listeners took: 0 ms] ``` So it scanned correctly 42 new files but it is not loaded and editor does not see these classes:  but the class is there:  Sometimes it helps to delete their target folder and then delete Netbeans cache or build a project from the command line. But I have some other projects that cannot be fixed anymore but they worked fine in the past and nothing regarding generating sources was not changed. See the correctly loaded generated sources:  Here is a testing project with Lombok, Mapstruct and openapi-generator-maven-plugin: [GenerateSources.zip](https://github.com/user-attachments/files/18882757/GenerateSources.zip) ### Language / Project Type / NetBeans Component Java Maven Project ### How to reproduce I do not know how to reproduce it because the same project worked ok one day ago and stopped working without any change only by rebuilding. ### Did this work correctly in an earlier version? No / Don't know ### Operating System Windows 11 ### JDK Adoptioum 21 ### Apache NetBeans packaging Apache NetBeans provided installer ### Anything else I would like to enable some debug logging but I do not have any idea what to enable and what to monitor. ### Are you willing to submit a pull request? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists