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 75707 - Code completion not showing class in different source package folder
Summary: Code completion not showing class in different source package folder
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Zezula
URL: http://spring-rich-c.sourceforge.net/
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-28 18:21 UTC by itamar
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing failed code completion (116.80 KB, image/png)
2006-04-28 18:23 UTC, itamar
Details
Packages found by code completion in another file (110.67 KB, image/png)
2006-04-28 18:28 UTC, itamar
Details
project.xml (822 bytes, text/xml)
2006-05-02 12:55 UTC, itamar
Details
project.properties (8.18 KB, text/plain)
2006-05-02 12:56 UTC, itamar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description itamar 2006-04-28 18:21:58 UTC
I created a project with existing code that is spread in several directories.  
The source is from the "Spring Rich Client" open source project.  I'm trying to
navigate from one file to another, but when I clicked in the file name holding
CTRL, I received the message 'Cannot open element
"org.springframework.richclient.application.ApplicationLauncher".'

Then I tried to locate the file using the code completion feature, but I
realized that the code completion can only find one of several packages inside
"org.springframework.richclient".  The one it can find is the one where my
current class is inside.

Opening manually the class that the code completion can't find, it shows all the
packages inside "org.springframework.richclient".  I'm going to attach some
screenshots for better understanding of what I'm trying to explain.
Comment 1 itamar 2006-04-28 18:23:00 UTC
Created attachment 30136 [details]
Screenshot showing failed code completion
Comment 2 itamar 2006-04-28 18:28:21 UTC
Created attachment 30137 [details]
Packages found by code completion in another file
Comment 3 itamar 2006-04-28 18:35:16 UTC
I remember in the old times of NB 3.6 (I think) there was an interface to
configure the code completions database, but or I just had a dream about it or
it's not available in NB 5 (or I'm just unable to find it).
Comment 4 Jiri Prox 2006-05-02 10:12:44 UTC
Can you provide project.xml and project.properties for further investigation,
please?
Comment 5 itamar 2006-05-02 12:55:29 UTC
Created attachment 30162 [details]
project.xml
Comment 6 itamar 2006-05-02 12:56:06 UTC
Created attachment 30163 [details]
project.properties
Comment 7 _ gtzabari 2006-07-10 13:28:12 UTC
I have also been seeing moderate problems with code-completion and CTRL-goto
functionality but in my experience it is far more random. For example, I
CTRL-click on a class, it opens. I close the file, do some other miscelleneous
stuff and retry CTRL-click on that same class name. All of a sudden Netbeans
can't find it. It looks as if something is corrupting the MDR or Netbeans is
"forgetting" classes somehow. I haven't been able to find reliable repro steps
for it though which is why I haven't filed a bug report yet, but I've been
seeing this issue for months.
Comment 8 Dusan Balek 2007-01-09 09:41:38 UTC
Seems like a problem in classpath setting. Reassigning for further evaluation.
Comment 9 Tomas Zezula 2007-01-09 12:34:58 UTC
The classpaths seems fine. Also package view displays the missing source. Seems
as a problem in the MDR. Try to delete the mdr caches. The MDR model was
replaced by the javac besed model in the 6.0.
Comment 10 hanasaki 2007-01-09 13:12:47 UTC
Please provide instructions for deleting the MDR caches.
Comment 11 Jiri Prox 2007-01-09 13:36:35 UTC
MDR cache is located in you userdir in folder /var/cache/mdrstorage, you can
delete this directory, it will be recreated on next Netbeans startup
Comment 12 Quality Engineering 2007-09-20 12:11:17 UTC
Reorganization of java component