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.

Bug 262203 - Groups leave files open
Summary: Groups leave files open
Status: RESOLVED DUPLICATE of bug 257581
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-24 08:11 UTC by antoniocs
Modified: 2016-07-19 13:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
PHP Group (7.69 KB, image/png)
2016-05-24 08:11 UTC, antoniocs
Details
C group (8.31 KB, image/png)
2016-05-24 08:11 UTC, antoniocs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antoniocs 2016-05-24 08:11:00 UTC
Created attachment 159856 [details]
PHP Group

Hey,

I have a few groups of different project types.
Most are php group projects but some are C only.

What I have noticed is that when I switch between groups I am left with files from my previous group open.

I have enabled the option to display files from different projects in different rows, not sure if relevant. (Options > Appearance > Document Tabs > Multi-row tabs - Clicked on "One row per project"

I have attached two files:

netbeans_files_php_group.png - Has my projects in php. Notice that there are two rows for 2 different projects. Both belong to the group I am in

netbeans_files_c_group.png - Has my projects in C. Now notice how the top row is the same from my php group, while the bottom row has a file from one of my C projects. The top row files are from a project that is not in the current group.

Please fix this issue!!

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_66; Java HotSpot(TM) 64-Bit Server VM 25.66-b18
Runtime: Java(TM) SE Runtime Environment 1.8.0_66-b18
System: Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb)
Comment 1 antoniocs 2016-05-24 08:11:27 UTC
Created attachment 159857 [details]
C group
Comment 2 antoniocs 2016-05-24 10:03:14 UTC
When switching back to my group with PHP projects, only the second row (the row with two files) was opened.

I don't think Netbeans is taking into account the "per row project" option.

This is not ideal as I expect the files I was working on in this group to be all opened no matter what project they were from. If they were open when I left the group I expect them to be open when I load the group.
Comment 3 Milutin Kristofic 2016-05-31 10:24:26 UTC
I think this belongs to Generic Projects UI
Comment 4 Tomas Stupka 2016-07-19 13:49:13 UTC
tried various scenarios - two groups, different project types, versioned/not versioned - but wasn't able to reproduce. 

any addional info related to the projects and files would be welcome:
- does this always happen?
- your files are versioned - what vcs? are the projects from the same clone?, ...
- any chance to provide exact steps how to reproduce?
- anything else ...

from the screenshots it looks like all files from the php group weren't closed. 
please check the files {userdir}config/Preferences/org/netbeans/modules/projectui/groups/{yourprojectgroup}.properties
if they contain only the groups you would expect there 

also please run NetBeans with the commandline switches 
-J-Dorg.netbeans.modules.project.ui.ProjectUtilities.level=-1 -J-Dorg.netbeans.modules.project.ui.OpenProjectList.level=-1
reproduce the problem and attach your messages.log to the issue

thanks
Comment 5 Tomas Stupka 2016-07-19 13:55:52 UTC
perhaps a duplicate of issue #257581
feel free to reopen in case you are still able to reproduce with a current dev build

*** This bug has been marked as a duplicate of bug 257581 ***