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.
Summary: | Project order corruption after NB startup | ||
---|---|---|---|
Product: | projects | Reporter: | matthies <matthies> |
Component: | Maven | Assignee: | Tomas Stupka <tstupka> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | csbubbles, terje7601, wvreeven |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
First screenshot
Second screenshot Third screenshot |
Created attachment 157224 [details]
Second screenshot
Created attachment 157225 [details]
Third screenshot
PS: This didn't happen with NB 8.0.2. can confirm this. Was correct under 8.0.2, but broken after upgrade to 8.1. The directory names are used for first sorting, before name-tag of pom.xml is used. So in the end my project-modules are not together in the long list of all open projects... fixed in jet-main #dd304312f2a1 *** Bug 256090 has been marked as a duplicate of this bug. *** *** Bug 254743 has been marked as a duplicate of this bug. *** Integrated into 'main-silver', will be available in build *201511130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/dd304312f2a1 User: Tomas Stupka <tstupka@netbeans.org> Log: Issue #256452 - Project order corruption after NB startup *** Bug 257066 has been marked as a duplicate of this bug. *** verified in trunk transplanted to release81 http://hg.netbeans.org/releases/rev/d06346900f44 *** Bug 257231 has been marked as a duplicate of this bug. *** This indeed is fixed in NB 8.1 and also NB 8.2 RC, but the same thing happens in the Files tab. I know the original bug was reported for the Projects tab but since the behaviours of the two tabs are so similar, I have reopened this bug. Please let me know if you prefer a new bug for this. By the way, it applies both to NB 8.1 and NB 8.2 RC. Also, when a Project Group is open and another Project is added to the Project Group, it gets added at the top of the list and the projects are not sorted alphabetically. I need to shutdown and restart NetBeans to get an alphabetically sorted project list again. |
Created attachment 157223 [details] First screenshot When opening the projects in the current project group upon NB startup, the projects change their display names during opening, which causes corruption of the sort order of the projects in the Projects view and in the Files view. The reasons seems to be that during opening of the projects, the displayed name of the project changes from the Maven project name to the local directory path of the project and back again to the Maven project name. At some point during that process, sorting of the projects seems to be triggered, and they are sorted according to their momentary display name, which for some projects is the Maven project name and for others is the direcory path. I managed to take a series of screenshots during startup that illustrate this. Initially (first screenshot), all projects are correctly sorted and are displayed with their Maven project name. Subsequently, while the projects are being opened, the projects temporarily become displayed with their directory path, and at some point are sorted according to their current display name(second screenshot). Finally, all projects end up being displayed with their Maven project name again, but retain the previous incorrect sorting (third screenshot). This seems to only happen during NB startup. When switching to another project group and back again, the correct sort order is restored.