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 262375 - Incorrect project closing
Summary: Incorrect project closing
Status: REOPENED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P2 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-09 09:24 UTC by legitalk
Modified: 2017-01-16 12:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (49.02 KB, text/plain)
2016-06-09 09:25 UTC, legitalk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description legitalk 2016-06-09 09:24:59 UTC
Product Version = NetBeans IDE Dev (Build 201606060002)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.60-b23

Reproducibility: Happens every time

STEPS:
I have f.e 5 projects in the list. When I launch NB, it takes several minutes (about 10) until all project are opened (they are from network, so it takes more time). While it is opening the projects, I clicked to close two of them (second and fourth). This operation (closing projects) is done after about 10 minutes, when all five projects are opened. But the problem is, that second project in the list is then closed, but not fourth. It will close another project, which I didnt want to close - the fifth.

I have tried to do this more times, still the same; like there is incorrect itemindex selected, which project has to be closed due to previous closed project
Comment 1 legitalk 2016-06-09 09:25:03 UTC
Created attachment 160007 [details]
IDE log
Comment 2 Tomas Stupka 2016-06-20 14:11:16 UTC
tried a couple of times, but wasn't able to reproduce

- what kind of projects is it - maven, php, html5 ?
- how exactly do you try to close it - multiselect and ctx menu in projects view, or maybe via the main menu?
- does this happen also when closing after 'opening projects' is finished?
- anything else?

also please run with commandline switch 
-J-Dorg.netbeans.modules.project.ui.OpenProjectList.level=-1
reproduce and attach your messages.log to the IDE
please check the log for "closing project:" - if the projects listed were those supposed to be closed, or those which actually were closed 

thanks
Comment 3 Tomas Stupka 2016-07-19 14:00:11 UTC
any update on this?

lowering priority - even though annoying, its easy to workaround or correct in the IDE
Comment 4 legitalk 2016-10-12 11:09:36 UTC
Projects are in PHP. I think its important the name of projects, because they are ordered alphabetically ("A", "B", "C"), so I left the same order of them in the steps written down.

Steps to reproduce:
1. have opened project "C"
2. click to open project "A" (this will take lets say 5 minutes)
3. while second step is in progress click to open project "B"
4. while second and third steps are in progress click to close project "C"
5. repeat fourth step once because the project is still opened (it was clicked to close project "C")
6. wait for couple minutes while all tasks are finished
7. now only project "A" is opened, projects "B" and "C" are closed, but project "B" was not clicked to close, but to open.

The result should be, project "A" and "B" are opened and project "C" is closed.

I think, in the background was happend this:
- "C" is opened
- "A" is opening
- "B" is opening
- "C" is closed
- "B" is closed

But "B" shouldnt be closed.

Hope this helps.
Comment 5 legitalk 2017-01-16 12:54:48 UTC
any update on this? this bug is still present in the latest build.