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.

Bug 115654 - [60cat] Editor can not find references to existing classes
Summary: [60cat] Editor can not find references to existing classes
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 115872 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-16 16:53 UTC by wobster
Modified: 2007-09-28 02:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wobster 2007-09-16 16:53:52 UTC
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.
Comment 1 Jan Lahoda 2007-09-16 18:40:40 UTC
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.
Comment 2 wobster 2007-09-16 20:30:06 UTC
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.
Comment 3 Jan Lahoda 2007-09-19 10:16:53 UTC
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
Comment 4 Jan Lahoda 2007-09-19 10:18:16 UTC
*** Issue 115872 has been marked as a duplicate of this issue. ***
Comment 5 Jan Lahoda 2007-09-19 10:20:16 UTC
*** Issue 115872 has been marked as a duplicate of this issue. ***
Comment 6 wobster 2007-09-20 05:39:43 UTC
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!