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 256161 - Debug drop-down carries duplicates and shows deleted project
Summary: Debug drop-down carries duplicates and shows deleted project
Status: REOPENED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on: 256362 256208
Blocks:
  Show dependency tree
 
Reported: 2015-10-25 01:08 UTC by Lou Dasaro
Modified: 2015-11-04 15:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows duplicates (100.96 KB, image/png)
2015-10-25 01:08 UTC, Lou Dasaro
Details
Shows more duplicates (101.15 KB, image/png)
2015-10-25 01:09 UTC, Lou Dasaro
Details
Shows entries remain after project deletion (82.39 KB, image/png)
2015-10-25 01:10 UTC, Lou Dasaro
Details
After deleting project, it yet remains in the Debug toolbar dropdown (68.54 KB, image/png)
2015-10-31 18:27 UTC, Lou Dasaro
Details
Shows the error (newer test case) (49.94 KB, image/png)
2015-11-03 19:24 UTC, Lou Dasaro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lou Dasaro 2015-10-25 01:08:29 UTC
Created attachment 156960 [details]
Shows duplicates

Not sure if this is the right category. Please reassign as appropriate!
See attachments. Steps to reproduce:
1. Invoke File->New Project->Samples->JavaFX and select the "Maven FXML MigPane Sample". Accept the defaults, and create the project.
2. Debug the project.
3. Invoke File->New Project->Samples->JavaFX and select "Advanced Media". Accept the defaults and create the project.
4. Debug the project. Note the entries in the Debug toolbar dropdown.
5. Delete the "Maven FXML MigPane Sample", including sources.
6. Check the entries in the Debug toolbar dropdown. See bug attachments.
Tested using IDE 8.1 FCS:
Product Version: NetBeans IDE 8.1 (Build 201510222201)
Java: 1.8.0_72-ea; Java HotSpot(TM) 64-Bit Server VM 25.72-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_72-ea-b02
System: Linux version 3.16.0-51-generic running on amd64; UTF-8; en_US (nb)
(ubuntu 14.04)
Comment 1 Lou Dasaro 2015-10-25 01:09:48 UTC
Created attachment 156961 [details]
Shows more duplicates
Comment 2 Lou Dasaro 2015-10-25 01:10:44 UTC
Created attachment 156962 [details]
Shows entries remain after project deletion
Comment 3 Tomas Stupka 2015-10-26 13:49:47 UTC
please evaluate
Comment 4 Martin Entlicher 2015-10-26 16:46:33 UTC
I didn't reproduce more duplicates.
But even two duplicates are wrong. The list of last debugging executions should not contain the current project.
Comment 5 Martin Entlicher 2015-10-27 18:00:54 UTC
Fixed by changeset:   293310:4fdb63703dbb
http://hg.netbeans.org/core-main/rev/4fdb63703dbb
Comment 6 Quality Engineering 2015-10-29 02:21:34 UTC
Integrated into 'main-silver', will be available in build *201510290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4fdb63703dbb
User: mentlicher@netbeans.org
Log: #256161: Get rid of duplicates and deleted/closed projects in debug projects history.
Comment 7 Lou Dasaro 2015-10-31 18:27:12 UTC
Created attachment 157083 [details]
After deleting project, it yet remains in the Debug toolbar dropdown

Dev build 201510300002 shows the duplicates have been eliminated (thank you), but an entry for the previously deleted project yet remains in the Debug dropdown menu (toolbar).
Comment 8 Martin Entlicher 2015-11-03 15:29:06 UTC
I can not reproduce this. The item is removed for me after the project is deleted.
Comment 9 Lou Dasaro 2015-11-03 19:24:51 UTC
Created attachment 157125 [details]
Shows the error (newer test case)

Slightly different steps to reproduce:

1. Invoke File->New Project->JavaFX->JavaFX Application and Click "Next". Accept the defaults, and Click "Finish" to create the project.
2. Debug the project.
3. Invoke File->New Project->Maven->JavaFX Application and Click "Next". Accept the defaults, and Click "Finish" to create the project.
4. Debug the Maven JavaFX project.
5. Right-click the Maven JavaFX project in the Projects view, and Delete it, including sources.
6. Check the entries in the Debug toolbar dropdown. It should look similar to the attachment dated 2015-Nov-03

This was tested using: NetBeans IDE Dev (Build 201511030002)
on Windows 8.1 (32b) with Java 1.8.0_66; 
and on Ubuntu 14.04/Linux 3.16.0-51-generic (64b) with Java 1.8.0_72-ea-b02
Comment 10 Martin Entlicher 2015-11-04 14:27:27 UTC
I have reproduced it with the Maven JavaFX project. Thanks for the steps.
Comment 11 Martin Entlicher 2015-11-04 15:14:18 UTC
The problem here is, that after the project gets removed from the Projects view, I'm notified about a running task, that process the deletion of the project. Based on that notification, I grab the last finished task (which happened to be the deleted one) and add it back.
I can implement a workaround for that strange behavior in the debugger menu logic, but IMHO this should be solved more conceptually in issue #256362.