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 178100

Summary: Add action that would drop caches and rebuild indices
Product: editor Reporter: mescalito
Component: Parsing & IndexingAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal CC: marfous
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description mescalito 2009-12-03 12:30:09 UTC
I am using Netbeans 6.7.1 for PHP.

I've experienced that the code completion get confused and some classes or symbols just disappear from the browser. This happens frequently to me when I switch from one working copy of a repository to a different branch where a lot of files change.

I found that the only way to fix this is by closing the IDE and reopening. Even closing and re-opening the project seems not to fix this.

I've found this in the forums: http://forums.netbeans.org/post-44079.html and there is a workaround that seems logical, haven't tested though, but I think it would be very useful to have something built-in the IDE.

------------------ quoting the form post
Close netbeans.

Just enter to the netbeans configuration folder: 
~/.netbeans/<version>/ 
And there are two folders: config and vars. Just delete the /vars folder, 

then reopen Netbeans and reload the project and Voila!! it begins to reparse the entire symbols for the project. 
------------------

I guess there should be, as a start, a command in the menu or project's context to rebuild the symbol database or a project.
Comment 1 Peter Pis 2009-12-04 06:46:47 UTC
Reassigning.
Comment 2 Martin Fousek 2012-01-17 14:37:36 UTC
It looks that this enhancement exactly fit in our current requirements for more comfortable work/code review for bg_scan. Probably it has sense to turn on this action only on some command-line switch... anyway the design I would keep up to you. ;)

Thanks a lot.