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 267393 - Slow HTML completion and editor freezing
Summary: Slow HTML completion and editor freezing
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-02 08:07 UTC by Martin Fousek
Modified: 2016-08-05 06:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot taken after invoking code-completion in HTML file (541.19 KB, application/octet-stream)
2016-08-02 08:07 UTC, Martin Fousek
Details
HTML codecompletion NB8.1 - sample1 (27.95 KB, application/octet-stream)
2016-08-02 11:53 UTC, Martin Fousek
Details
HTML codecompletion NB8.1 - sample2 (48.27 KB, application/octet-stream)
2016-08-02 11:53 UTC, Martin Fousek
Details
HTML codecompletion NB8.1 - sample2 (28.14 KB, application/octet-stream)
2016-08-02 11:54 UTC, Martin Fousek
Details
HTML codecompletion NB DEV - sample1 (68.04 KB, application/octet-stream)
2016-08-02 11:54 UTC, Martin Fousek
Details
HTML codecompletion NB DEV - sample2 (48.27 KB, application/octet-stream)
2016-08-02 11:55 UTC, Martin Fousek
Details
snapshot with disabled assertions (-da) from NB DEV (72.99 KB, application/octet-stream)
2016-08-04 11:07 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2016-08-02 08:07:27 UTC
Created attachment 161527 [details]
snapshot taken after invoking code-completion in HTML file

Updates: Updates available to version NetBeans 7.4 Patch 3
Java: 1.8.0_77; OpenJDK 64-Bit Server VM 25.77-b03
Runtime: OpenJDK Runtime Environment 1.8.0_77-b03
System: Linux version 4.6.4-201.fc23.x86_64 running on amd64; UTF-8; en_US (nb)

I'm using the latest DEV build and the HTML editor is almost unusable due to continuous freezes and very slow code completion. I'm attaching snapshot where it looks that the cause could be in the HTML getting of custom tags. But hard to guess whether it's an issue of the HTML editor or rather slow KO extension. Please feel free to reassign.

Any short-term improvement would be very appreciated since this makes the editor pretty unusable, thanks. :)
Comment 1 Petr Pisl 2016-08-02 11:17:22 UTC
This is caused by Html module. Html is evaluating html errors. It can be also that html is trying to find errors in js files as well.
Comment 2 Martin Fousek 2016-08-02 11:53:42 UTC
Created attachment 161533 [details]
HTML codecompletion NB8.1 - sample1
Comment 3 Martin Fousek 2016-08-02 11:53:59 UTC
Created attachment 161534 [details]
HTML codecompletion NB8.1 - sample2
Comment 4 Martin Fousek 2016-08-02 11:54:28 UTC
Created attachment 161535 [details]
HTML codecompletion NB8.1 - sample2
Comment 5 Martin Fousek 2016-08-02 11:54:52 UTC
Created attachment 161536 [details]
HTML codecompletion NB DEV - sample1
Comment 6 Martin Fousek 2016-08-02 11:55:08 UTC
Created attachment 161537 [details]
HTML codecompletion NB DEV - sample2
Comment 7 Martin Fousek 2016-08-04 11:07:28 UTC
Created attachment 161558 [details]
snapshot with disabled assertions (-da) from NB DEV
Comment 8 Petr Hejl 2016-08-04 14:15:16 UTC
Should be fixed in web-main 0ce582e3875f. The whole KnockoutIndexer has a bit strange logic where there is indirect interaction between model and indexer.
Comment 9 Quality Engineering 2016-08-05 01:56:42 UTC
Integrated into 'main-silver', will be available in build *201608050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0ce582e3875f
User: Petr Hejl <phejl@netbeans.org>
Log: #267393 - Slow HTML completion and editor freezing
Comment 10 Martin Fousek 2016-08-05 06:25:30 UTC
The code completion is almost instantaneous now! Really great progress in the speed, thanks for your patience and diligence to detect cause of the issue.