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.
I've been using NetBeans 6 dev to develop for a couple of months now. With recent nightly builds, I've noticed that the editor is claiming that it cannot find packages that exist within the same project or in libraries that are part of the project. I cannot follow references to classes either. Oddly enough, it builds within NetBeans without any trouble.
I am afraid we will need some help with tracing this. Could you please answer a few questions? 1. Any idea of a build number when it worked correctly and when it does not work anymore? 2. That project type do you use? 3. Could you please double check that you do not have (significant) excludes in Project Properties? 4. (With IDE stopped), could you please back-up ${user.dir}/var/cache/index for possible future reference, and try to delete this folder and start the IDE again if the problem persists? Thank you very much.
Here are the answers: 1.) I think after build 9/07/2007 it stopped working. I know that the 9/09/2007 didn't work and the 9/07/2007 did. 2.) Plain Java project with external (subversioned) sources 3.) There are zero excludes for this project 4.) I deleted all the contents of ${user.dir}/var and even started with a fresh ${user.dir} (Documents and Settings/myuserid/.netbeans/dev) with just the library definitions copied to the config directory and restarted, but the problem remained.
Thanks Rob very much for the help. It seems we have found the problem - to fix issue #57392, we added code that ignores sources attached to libraries while parsing other source files, unless the sources belong to a project. But the "unless" part was broken, so if a library was created for the project's output jar+its sources, the sources were ignored. The problem should be fixed by the following commit, could you please verify in your set-up? Thanks. Checking in GlobalSourcePath.java; /cvs/java/source/src/org/netbeans/modules/java/source/classpath/GlobalSourcePath.java,v <-- GlobalSourcePath.java new revision: 1.13; previous revision: 1.12 done
*** Issue 115872 has been marked as a duplicate of this issue. ***
I tried it out with the "NetBeans 6.0 200709191200" build and it works great now. It didn't seem to spend so much time at startup either parsing the source code associated with the libraries and directories in the class path. Thanks for the quick response!