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 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.
Created attachment 30136 [details] Screenshot showing failed code completion
Created attachment 30137 [details] Packages found by code completion in another file
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).
Can you provide project.xml and project.properties for further investigation, please?
Created attachment 30162 [details] project.xml
Created attachment 30163 [details] project.properties
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.
Seems like a problem in classpath setting. Reassigning for further evaluation.
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.
Please provide instructions for deleting the MDR caches.
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
Reorganization of java component