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.
I typically start up netbeans with an explorer and select "Makefile". When I restart I **always** get "Makefile.orig" selected, ie, netbeans is remembering enough to attempt to restore my selection but not enough to correctly restore it. I've verified this problem with other file pairs too. If I select foo.h in a directory which also has foo.cc and then exit, when I restart foo.cc is selected. Perhaps the selection code is ignoring suffixes?
Passing to Marek.
Why did you you assigned this issue to me? Keeping selected nodes in explorer is not responsibility of winsys. I reassign this issue to explorer.
ok, my fault, thanks for reassigning
[May 28 dev] I tried it on the recent build and the behavior changed. The selection persists if it's sure node for selection if it's not sure then is folder selected. IMHO it works for me, user couldn't be confused by bad selection. If the behavior is wrong still, please reopen. Thanks.
Resolved for 3.4.x or earlier, no new info since then -> verified
Resolved for 3.4.x or earlier, no new info since then -> closing.
I checked this issue with Rainier (release35R) and its mostly better but not 100%. If I have multiple Makefiles in my directory (Makefile, Makefile.old, Makefile.foo, etc) and select Makefile before exiting, when I restart I've got the 1st (alphabetical) Makefile selected (Makefile.orig in my case) rather than the one selected when I exited. You should be able to duplicate this with a standard netbeans build if you add the cpp module (which has the Makefile support).
Same problem as in issue 21177, it's a other symptom of the known problem with selecting nodes, will be solved if will be reimplemented nodes/views. *** This issue has been marked as a duplicate of 21177 ***
verifying duplication
Bugfix 21177 doesn't help to solve this aspect of the problem.
I should be fixed in next release, reported several times. I guess it could be fixed by similar way as in bugfix issue 21177.
*** Issue 40756 has been marked as a duplicate of this issue. ***
Assigned to new owner.
The problem of selecting wrong file is caused by the fact that node name is given by data object and usually does not contain extension. Then the system does not know which one to select. But this is fully in control of data objects, they are responsible for given correct names to their node delegates.
But in 4.0 the DefaultDataObject (that recognizes .orig or .old files) keep the selection so, everything is ready for the explorer to correctly select the right now. I've tested that the name contains selection in this test: openide/test/unit/src/org/openide/loaders/DefautDataObjectHasOpenTest.java,v <-- DefautDataObjectHasOpenTest.java new revision: 1.2
Gordon Prieur, could you please verify this issue ? Thanks in advance
How can I verify this in 4.0? I installed our module (cpp) in trunk NetBeans and it looks like 4.0 doesn't remember the node selection after restarting. It was the original symptom that the wrong node got selected after restarting the IDE.
The issue 44877 was just fixed, so you can verify it now.
It does not seem to fix the problem in cpp. I will investigate whether it is a bug in cpp....
If you create Makefile.old and Makefile.new and select one of them the selection is remembered. I just verified this in NetBeans 4.0 Projects view.
But I doubt it would work for MyApp.c vs. MyApp.h (of course when you have cpp module installed)
can someone who is using CPP module verify, that it works now??
Is the bug still relevant? If I select a file in NB4.1 (the release our Sun Studio development is currently using), exit the IDE, and restart, the project has been closed and there IS no file selected. The same is true if I select a file in the Files view. Is there a way to tell NB to leave the expanded project/directory open? Then I could verify this. I actually consider it worse in NB41 because everything in the explorer is closed after a restart.
closed
> Is there a way to tell NB to leave the expanded project/directory open? Yes, there is, -J-Dnetbeans.keep.expansion=true, but it is quite costly at startup, that is why we made it an option, off by default.