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 268691 - Automatic background project scanning starts during refactoring, then halts refactoring, which in turn blocks IDE until all the scanning is done.
Summary: Automatic background project scanning starts during refactoring, then halts r...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-26 10:04 UTC by marcino
Modified: 2017-03-30 14:46 UTC (History)
0 users

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 marcino 2016-10-26 10:04:03 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_101
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13

Reproducibility: Happens every time

STEPS:
  * Point the cursor on some class-level variable in a header file that is used in a few projects (all those projects are also open); the variable is used in both .h and .cpp file.
  * Press CTRL-R to open the refactoring window
  * Change the name of the variable and press "Preview"
  * Once the preview is done, click 'Do refactor'

ACTUAL:
  Code completion scanner starts almost immediately after the header file is (automatically) saved with an updated variable name - before the refactor completes ('Refactor progress' window progress bar is in the middle).
  Refactoring is then suspended until all projects complete their code completion. 
  Since the 'Refactor progress' window is modal,  the entire IDE is then frozen until all projects are scanned, which takes a couple of minutes.

EXPECTED:
  Code completion project scanning is delayed until refactoring completes, then runs in background allowing for normal IDE usage.