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.
In the explorer it is possible to drag a project node and drop it on itself, thereby making it disappear. Then if you add the project node again (using the file systems tab) it shows up containing itself. Additionally this makes the search in files function fail: If you try to search for files containing a certain text NetBeans will go into an infinite loop because the node now contains itself. I took the liberty of filing this as a P1, because anyone who use the project tab can very easily loose project nodes if they accidentally move the mouse a little while clicking a node. For me, and several other users, that meant that we thought the whole system was unstable since our project nodes disappeared randomly. If you ask me, this is a MUST FIX for the final release. Thank you for a great product! Randahl
Marking fixed for D just because no such thing can happen in D; still open from the perspective of 3.6 because of the version and target milestone fields.
It seems to be a problem with data systems (DataShadow?). The node representing the link should never enable the Paste action on itself, nor any of its children. I still think there is an issue in the data systems that needs to be fixed. Reopening.
Fixed in trunk: Checking in src/org/openide/loaders/DataFolder.java new revision: 1.21; previous revision: 1.20 Checking in src/org/openide/loaders/DataShadow.java new revision: 1.9; previous revision: 1.8
Created attachment 14224 [details] bugfix diff for potential inclusion in NB36
Fix is simple, but needs to be properly tested if we want to include in in NB36 and there is still time for it.
Created attachment 14225 [details] binary patch
Binary patch attached. I did not have time to test it, but storing it to lib/patches should solve the problem.
Should be well tested, but fix seems to be safe.
proposed relnote (please check since I can't reproduce it, so I'm not sure if I'm describing it correctly): "Description: In the Project window, it is possible to accidentally drag and drop a node into itself and thus make the node disappear." Any possible workarounds?
How to reproduce: * start IDE with new userdir * in Project tab right click Project Default node and choose Add Existing and choose for example "examples" folder from sampledir * now drag "examples" and paste it onto itself - it will disappear Workaround for node disappaerance is to re-add "examples" folder to project again and delete the link you created. Otherwise Find action on project can get into infinite loop. So, re-add examples to your Project Default node and expand it - you will see that it contains the link to "example" and that one must be deleted.
OK. I reproduced it (I don't know why I couldn't yesterday). relnote text: "Description: In the Project window, it is possible to accidentally drag and drop a folder node into itself and thus make the node disappear. After re-adding the folder, a subfolder with the same name appears within the folder. If you do a search on the folder, the search will get caught in an infinite loop. Workaround: Add the folder back by right clicking the Project node and choosing Add Existing. Then expand the re-added folder and delete the subfolder that has the same name as the folder.
Sounds OK to me.