This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 102438 [details] Results of clean and build. Flag "needs to be compiled" still visible I have a freeform project. The project has two packages. Once I clean and build the whole project the flag "Needs to be compiled" disappears from the one of the two packages. However, both packages have been compiled and wokring properly. Initially thought that this is the same as issue #161673 but this has been resolved in 6.8 (according to the issue report). I am also attaching the screenshot.
Please attach the project.xml file. Thanks
Created attachment 102499 [details] project.xml (freeform project) Please find attached the project.xml as requested.
The problem is caused due to mixed compilation units. The project has 2 compilation unit which is fine but they have mixed artifact (output) folder. <compilation-unit> <package-root>plugins/net.sourceforge.homekeeper.core/source</package-root> <classpath mode="compile">lib/commons-logging.jar;lib/jpf-boot.jar;lib/jpf.jar;lib/log4j.jar;lib/swing-layout-1.0.4.jar;lib/mysql-connector-java-5.1.13-bin.jar</classpath> <built-to>build/plugins/net.sourceforge.homekeeper.core/classes</built-to> <built-to>build/plugins/net.sourceforge.homekeeper.bills/classes</built-to> <source-level>1.6</source-level> </compilation-unit> <compilation-unit> <package-root>plugins/net.sourceforge.homekeeper.bills/source</package-root> <classpath mode="compile">lib/commons-logging.jar;lib/jpf-boot.jar;lib/jpf.jar;lib/swing-layout-1.0.4.jar;build/plugins/net.sourceforge.homekeeper.core/classes</classpath> <built-to>build/plugins/net.sourceforge.homekeeper.core/classes</built-to> <built-to>build/plugins/net.sourceforge.homekeeper.bills/classes</built-to> <source-level>1.6</source-level> </compilation-unit> The first cu (homekeeper.core) is a library of the second cu (homekeeper.bills). You probably want to change the cu's <build-to> in the following way: <compilation-unit> <package-root>plugins/net.sourceforge.homekeeper.core/source</package-root> <classpath mode="compile">lib/commons-logging.jar;lib/jpf-boot.jar;lib/jpf.jar;lib/log4j.jar;lib/swing-layout-1.0.4.jar;lib/mysql-connector-java-5.1.13-bin.jar</classpath> <built-to>build/plugins/net.sourceforge.homekeeper.core/classes</built-to> <source-level>1.6</source-level> </compilation-unit> <compilation-unit> <package-root>plugins/net.sourceforge.homekeeper.bills/source</package-root> <classpath mode="compile">lib/commons-logging.jar;lib/jpf-boot.jar;lib/jpf.jar;lib/swing-layout-1.0.4.jar;build/plugins/net.sourceforge.homekeeper.core/classes</classpath> <built-to>build/plugins/net.sourceforge.homekeeper.bills/classes</built-to> <source-level>1.6</source-level> </compilation-unit>
Hello and thank you for your reply. However, please note that I have updated project.xml according to your recommendation but the problem still exists. I am attaching the new project.xml (renamed it to project.xml_new) and a new screenshot. I am reopening the issue.
Created attachment 102554 [details] The updated project.xml as per suggestion
Created attachment 102555 [details] The screenshot showing the problem after the suggested change was performed
Still works for me. Seems caused by the project set up. I am attaching a simple freeform where file built status works fine (tested in dev build). The freeform project sometimes requires IDE restart after change of the project metadata, this may be the problem.
Created attachment 102604 [details] The test project
I confirm that after restarting the IDE, the problem has gone away.
OK, thanks.