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 - Assign Return Value to New Variable is very slow after Code Completion
Summary: Assign Return Value to New Variable is very slow after Code Completion
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-11 12:28 UTC by Vladimir Voskresensky
Modified: 2016-07-07 14:03 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 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.