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.
On non trivial projects, the code completion often needs >5 sec even for simplest getter/setter. After installing the new version 8.0.1 it was faster for a time and then degraded again. I'm using Java 8_u20. Within lambdas, the problem seems to increase and sometimes doesn't even work (which is just a little bit better in Eclipse, as it does not freeze the IDE). I'm a Netbeans fan but unfortunately had to switch to Eclipse due to this problem. Don't underestimate this problem! Many advanced users will not complain but just say "too slow ..." and change. Best regards, Marc Dzaebel
Could you please create a profiler snapshot using the Profile the IDE (Alt+Shif+Y) action, and attach it to the issue? Thanks.
I have the same problem After installing 8.0.1 code completion was faster but after installing some updates yesterday it take about 5 minutes
Created attachment 150565 [details] coce completion
As can be seen from the attached profiler snapshot, code completion is waiting for an extremely slow JsStructureScanner running in Parsing API loop. Reassigning to JS support.
In order to reproduce the original (non JS) problem, I started Netbeans and closed all projects in the group and reopened some of them. After that, all code completions work fine. However, I also use JRE 1.8.0_40-ea, so the problem might have been a side effect of other projects or the new JDK/JRE or an installation problem. As I can't reproduce the problem any more, you might close the original issue. If the problem recurs, I'll post a new issue.
As Dusan wrote, according the snapshot the problem is in JsStructureScanner that could not be canceled during computing the items. Recently there was added fix, which allows to cancel long tasks and now it is possible to cancel JsStrucutreScanner as well. This should solve also this issues.