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.
Product Version: NetBeans IDE Dev (Build 201212030001) Java: 1.7.0_09; Java HotSpot(TM) 64-Bit Server VM 23.5-b02 Runtime: Java(TM) SE Runtime Environment 1.7.0_09-b05 System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb) User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev 1. Edit a Javascript JSDoc comment. 2. Notice the Navigator window is repopulated every time. Expected behavior: The navigator window should only be repopulated if its contents actually change. Editing comments does not modify the DOM tree so the navigator view should remain unchanged.
looks similar to issue 222130
Both issues have to do with making the navigator implementation more efficient. In my case I'm not even adding nodes to the DOM and the Navigator gets repopulated. But yes, the end-goal is similar: we want to minimize visual changes if possible (it is distracting).
_ gtzabari: Can you please try it in NetBeans 7.3 or latest dev build to see if fixing issue 222130 helped? Thank you
It is almost fixed. The changes are much less noticeable now but I found one last problem. Given: /** * A queue is a first-in-first-out (FIFO) data structure. Items are added to the end of the queue * and removed from the front. * * This implementation is based on http://code.stephenmorley.org/javascript/queues/ by * Stephen Morley. */ /** * Creates a new queue. */ function Queue() { "use strict"; var length = 0; Object.defineProperty(this, "length", { enumerable: true, get: function() { return length; } }); /** * @return {boolean} true if the queue is empty, and false otherwise. */ this.isEmpty = function() { return length === 0; }; } 1. Position caret inside the first comment block. 2. Examine isEmpty() signature in Navigator. It should read "Boolean|boolean". 3. Insert a single character. Repeat step 2. 4. Keep on repeating step 3. Notice that method signature alternates between "Boolean|boolean" and "boolean|Boolean". Expected behavior: method signature shouldn't be affected by editing of comment.
Fixed in web-main.
Integrated into 'main-silver', will be available in build *201307312300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4d38c78abf95 User: Petr Pisl <ppisl@netbeans.org> Log: #223201 - Navigator is repopulated even if DOM is unchanged