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 258771

Summary: Assign Return Value to New Variable is very slow after Code Completion
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: Code CompletionAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Voskresensky 2016-04-11 12:28:24 UTC
I type CastType->getType| in completion list I see
getTypeClassName() const char*
I select this entry and press ";" but hint "Assign Return Value to New Variable " appears only after ~4 sec, while I need it immediately, because it was clear that IDE already resolved what is inserted getTypeClassName()
Please, try to make IDE more responsive for such usecase:
- call completion
- type semi
- allow to press immediately Alt+Enter to assign return value to new variable
Comment 1 Alexander Simon 2016-07-07 13:53:15 UTC
IDE uses parsing API.
There is no infrastructure that allows to implement this suggestion.
Your suggestion is a platform feature (not a bug). Please file a separate enhancement.

Now delay is:
- "file parsing time"+1000ms if "file parsing time" < 2000ms
- 2*"file parsing time"+2000ms if "file parsing time" > 2000ms

I can only reduce delay to "file parsing time"+100ms. But it can make IDE not responsive.
Comment 2 Alexander Simon 2016-07-07 14:03:54 UTC
Additional delay is result of half-migration on parsing API.
(I do not understand migration status, see http://hg.netbeans.org/cnd-main/rev/6c4fc5670b9a)
Now re-parsing on document modifying is scheduled more then 2 times.