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.
Created attachment 107422 [details] Test JavaScript File After a simple but large one line JavaScript file is opened and closed in the editor, the IDE becomes very slow. For example, keyboard navigation the tree in the project explorer is slow. I cannot detect high CPU usage. The only solution I found is to re-start NetBeans. Please refer to the attached test file.
A script file containing only a single line which contains a single variable. Hopefully fixing this as soon as possible will have the side effect of solving other problems.
Reproducible in current dev build. The editor view hierarchy is painting really loooong. Some of the view hierarchy code execution is done in EDT, some in ViewHierarchy-Region-Rebuilding thread. Apparent problem of the editor view hierarchy infrastructure. Though the file structure is not typical (250kB long line), in javascript is not that uncommon.
I will implement more lazy initialization of views for long lines which should improve the situation.
Marking as dup since issue #197534 should cover this case too. *** This bug has been marked as a duplicate of bug 197534 ***