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.
Summary: | Ignore Library from scanning, Use only for compile/run | ||
---|---|---|---|
Product: | projects | Reporter: | kajekar <kajekar> |
Component: | Libraries | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | mmirilovic |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
kajekar
2005-02-28 11:42:28 UTC
Actually I have to disagree with the thrust of this request. I believe the solution is not to omit libraries from the code completion database. Rather it is to give explicit control over when scanning is performed! In my case I need code completion on the massive library. Moreover, I have to work with this library as its own massive project. The solution is not to cripple the IDE's code completion, refactoring, etc. The solution *is* to let me set a project preference to skip the automatic scanning upon opening the project and allow me to request it when I need it! The IDE can provide perfectly helpful code completion without the entirety of its code completion database being perfectly up to date! For refactoring, a simple "Metadata database may not be up to date. Update now? OK/Cancel" dialog would suffice. Currently it can take over 15 minutes for me to open my project sometimes! That is ludicrous for a foreground activity before I can start working, especially when the vast majority of the time nothing has changed since I last opened the project -- and if it has I *know* when it has! I have filed an alternate enhancment: 55784 I see your point. In my case, these are jars/classes which i am not using directly and will not effect my refactoring etc. Hence i would prefer NB not scanning these and loading 'em into memory. The reason to prevent scanning is simply to reduce memory consumption and improve performance. When i first tried the IDE, i added all the jars and classes folders to a library, and the IDE was taking over 300 Megs and was very very sluggish. And now, i have (painfully) filtered this list to only those which i will need (directly + indirectly) and IDE is much faster. Hence the request. And I think library manager is just the place to add this "knob". But yes, the kind of feature you need is immensly useful and much needed. Reporter's best option is to break up the project into more manageable pieces with more limited dependency lists - and don't open the projects which are not actually being worked on. Or buy more RAM. A future IDE release may have a lighter-weight scanning engine but this is going to take a while to implement and would happen for other reasons anyway. For other possibilities see issue #55784. *** This issue has been marked as a duplicate of 55784 *** |