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 180581 - PHP signature fileas are not reindexed after upgrading to 6.8 Patch 1
Summary: PHP signature fileas are not reindexed after upgrading to 6.8 Patch 1
Status: RESOLVED DUPLICATE of bug 180262
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
: 180580 180601 182049 (view as bug list)
Depends on:
Blocks: 182367
  Show dependency tree
 
Reported: 2010-02-10 15:42 UTC by bwilliams_nwp
Modified: 2010-03-29 14:47 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bwilliams_nwp 2010-02-10 15:42:55 UTC
After upgrading to NetBeans v6.8 Patch 1, one of my most beloved features seems to be working intermittently at best.

I use NetBeans for PHP/symfony development.

When I first start up NetBeans, I can right-click on a method, for instance,

FooFactory::createBar();

select Navigate > Go to Declaration, and be taken directly to the method declaration for the createBar() method.

After a few minutes, it ceases to work. Even restarting NetBeans fails to make any difference.

Another version of NetBeans I have on another machine works fine with these same files. It is the unpatched version of 6.8. These feature worked fine until I installed Patch 1.

If you need further information about this bug, please don't hesitate to ask.
Comment 1 rmatous 2010-02-10 23:35:29 UTC
Version of index was changed for patch 1, so please close your IDE, delete manually <userdir>/var/cache/index and start NetBeans, it should work again

If not, then please reopen again
Comment 2 rmatous 2010-02-10 23:36:26 UTC
please comment if it helps or not, thanks
Comment 3 bwilliams_nwp 2010-02-11 18:45:29 UTC
I was able to workaround this issue by deleting the NetBeans index directory and restarting the application.

On Windows, this index directory is found here:

C:\Users\<username>\.netbeans\6.8\var\cache

Everything works fine now.
Comment 4 rmatous 2010-02-12 01:07:38 UTC
filipe, please could you try to reproduce because seems to be common problem (in patach 1 was increased version of index) and if reproducible somehow then please reassign to vstejskal

other related claims can be found here:
http://forums.netbeans.org/post-63222.html
Comment 5 rmatous 2010-02-12 01:08:53 UTC
reassign and reopen naturally because forcing users to delete var/cache isn't solution
Comment 6 Filip Zamboj 2010-02-12 01:10:05 UTC
sure, I'm on it right now
Comment 7 Filip Zamboj 2010-02-12 02:35:45 UTC
Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01

i can finally (after two update crashes) confirm that we have some kind of problem here. 

1. install nb6.8
2. open php project 
3. update to patch1 
4. restart ide after update 

I am getting 'please wait' almost everywhere (navigator, code completion, go to declaration) and 100% processor in use. it took me about 5minutes to close IDE. Scanning was not in progress (at least no progress bar appeared)

5. delete var/cache/index -> it works 

there are more issues mentioned here so I will investigate again and separate them. so far this one is for go to declaration.
Comment 8 rmatous 2010-02-12 02:43:45 UTC
is it reproducible?
Comment 9 Filip Zamboj 2010-02-12 02:48:20 UTC
well, yesterday I didn't reproduce because update failed. so i tried again today and finally got there. Anyway, so far I reproduced with full ide only. I'm still on it and will try again with php only and then again with full ide.
Comment 10 Filip Zamboj 2010-02-12 03:31:56 UTC
i didn't reproduce with 68patch1 updated from 68 php only distribution.
Comment 11 Filip Zamboj 2010-02-12 04:04:05 UTC
hmm ... so i tried again with full ide (uninstall/install/update) and i didn't reproduce. looks like it's random => P3
Comment 12 Tomas Mysik 2010-02-12 04:16:29 UTC
*** Bug 180580 has been marked as a duplicate of this bug. ***
Comment 13 rmatous 2010-02-12 05:17:19 UTC
if its random its even worse
Comment 14 Vitezslav Stejskal 2010-02-15 08:16:44 UTC
So, what exactly are the steps how this can be reproduced?
Comment 15 Tomas Zezula 2010-02-15 10:12:42 UTC
The problem is caused by the cancel which comes during the initial scan => no scan is done but the indexer version is upgraded. In the successive scans the indexer version is already up to date and no scan is triggered.
1) (Hot)fix is eliminate this problem caused by the scan.
2) The correct solution solving even problems of non opened projects is to split the known-*-indexers to be per root (not global). But it's nontrivial task. :-(
Comment 16 Tomas Zezula 2010-02-15 10:30:13 UTC
Vita is interested in this :-)
Comment 17 rmatous 2010-03-15 15:32:19 UTC
*** Bug 182049 has been marked as a duplicate of this bug. ***
Comment 18 rmatous 2010-03-17 15:13:13 UTC
*** Bug 180601 has been marked as a duplicate of this bug. ***
Comment 19 Vitezslav Stejskal 2010-03-29 14:47:11 UTC
The root of the problem is incorrect indexer version check as described in issue #180262.

*** This bug has been marked as a duplicate of bug 180262 ***