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 168460

Summary: Changes in VisibilityQuery are ignored
Product: editor Reporter: Tomas Mysik <tmysik>
Component: Parsing & IndexingAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Mysik 2009-07-13 09:09:36 UTC
If one changes VisibilityQuery (e.g. using Tools > Options > Miscellaneous > Files), this change is ignored. IDE restart helps.
Comment 1 Vitezslav Stejskal 2009-07-13 12:48:57 UTC
Tomas and I discussed this offline and the problem is that the indexing infrastructure crawls through files that are not
filtered out by VisibilityQuery and indexes them. If for some reason VQ is changed, the set of files 'visible' for
indexing changes as well and the indexes need to be updated. That is the files that have not previously been indexed
have to be indexed now and the files that has been indexed, but are not visible now have to be dropped from the indexes.

This will somehow have to be added to RepositoryUpdater.
Comment 2 Tomas Mysik 2009-07-13 15:31:53 UTC
This issue partly blocks issue #168464.
Comment 3 Tomas Zezula 2011-04-06 14:57:00 UTC
Unfortunately the VisibilityQuery was not designed with performance in mind.
The RepositoryUpdater (FileObjectCrawler) will need to ask VisibilityQuery with every file object.
I can add it into FOC and enable it by cmd line option. But definitely nothing what should be enabled by default.
Comment 4 Tomas Zezula 2011-04-07 12:07:12 UTC
Fixed jet-main 1a3ec6ee2d92
Comment 5 Quality Engineering 2011-04-09 08:38:49 UTC
Integrated into 'main-golden', will be available in build *201104090401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1a3ec6ee2d92
User: Tomas Zezula <tzezula@netbeans.org>
Log: #168460:Changes in VisibilityQuery are ignored