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.
If ProjB depends on ProjA, making a change to ProjA is not detected by ProjB until ProjA is built. I realize this is because ProjB only knows about ProjA's jar file, however, this is a feature that Eclipse handles nicely. See http://wiki.netbeans.org/EclipseWorkspaceImporterDemo for more details.
What type of project do you use? It works fine for me, maybe I have the projects differently configured. Can you provide sample project?
Sorry, I was working with imported Eclipse projects, so this is instead a problem with the project importer. I've attached 2 zip files, NativeNetBeansProjects.zip, which contains Proj1 and Proj2 (Proj2 depends on Proj1). Any changes to Proj1 are properly detected by Proj2. I've also attached ImportedEclipseProjects.zip, which contains Proj3 and Proj4 (Proj4 depends on Proj3). In this case, changes to Proj3 are not picked up by Proj4.
Created attachment 55497 [details] Native NetBeans projects which work as expected
Created attachment 55498 [details] Projects imported from Eclipse, which fail to recognize changes to dependent projects
It seems that the problem is not related to projects imported from Eclipse only. I can reproduce the same behavior in projects directly created in NetBeans IDE. I will provide steps to reproduce.
Steps to reproduce in native netbeans projects: - Unzip archive TestProjects.zip - Open ProjA and ProjB and open classes TestA and TestB in editor - Change signature of TestA.getString method, save the file - ProjB is not marked by error badge - Switch to TestB file in editor, error is underlined - ProjB is still not marked by error badge - After some time and clicking around those projects ProjB is finally marked by error - Fix the signature of TestA.getString - Switch to TestB file in editor, error is not there, but the project and editor tab are still badged by error
Created attachment 56684 [details] test projects
It is a currently known limitation that the dependencies are checked (and recompiled) only inside one source root.
*** Issue 134548 has been marked as a duplicate of this issue. ***
*** This issue has been marked as a duplicate of 147000 ***