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 212312 - I&T undo problems (was: project directory not fully deletable after I&T)
Summary: I&T undo problems (was: project directory not fully deletable after I&T)
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.2
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-10 13:20 UTC by MackSix
Modified: 2016-07-07 07:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project to use for reproduction. (2.14 MB, application/zip)
2012-05-10 13:20 UTC, MackSix
Details
log file (57.59 KB, text/plain)
2012-05-10 13:21 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-05-10 13:20:43 UTC
Created attachment 119283 [details]
Project to use for reproduction.

In some cases projects that normally will delete with deletion of project
directory will not fully delete and leave empty folders.

For instance, the attached project will not delete fully after doing some
operations.

1) Open attached project JEditor.zip.
2) Run Inspect and Transform>>If-Else must use braces. 
3) The refactor window comes up - press the Refactor button.
4) When refactor is done - click the Undo button.
5) When Undo is done, delete project and check "Also delete sources under...".

This path of empty directories are left on drive:

C:\Users\Mark\Documents\NetBeansProjects\JEditor\src\org\gjt\sp

See attached messages.log file.
Comment 1 MackSix 2012-05-10 13:21:20 UTC
Created attachment 119285 [details]
log file

Product Version: NetBeans IDE Dev (Build 201205090400)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 2 Jesse Glick 2012-05-10 17:11:09 UTC
Tried to reproduce in a dev build on Ubuntu, but after step #4 and agreeing to undo the refactoring, I got an error message - something like "Cannot undo: following files were modified" and a list of a couple dozen source files. Save All was disabled so they were not "modified" in the normal sense. Guessing that this could be indicative of a root problem that can also lead to MackSix's symptoms, though it is also possible this is unrelated.
Comment 3 Jan Becicka 2012-05-17 07:20:22 UTC
It works for me. Windows specific?
Comment 4 Jesse Glick 2012-05-18 01:49:03 UTC
My comment #2 specified Ubuntu.
Comment 5 Jan Lahoda 2013-07-16 13:01:05 UTC
I tried with a recent daily build, and was not able to reproduce. Does this still happen? Thanks.
Comment 6 MackSix 2013-07-16 20:31:37 UTC
Yeah I have the JEdit 5 project and JEdit 5.1pre1 projects both setup the same in NetBeans for testing and it left the \src\org\gjt\ directory (empty) when I deleted the project using the same steps.

Product Version: NetBeans IDE Dev (Build 201307152300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 7 Martin Balin 2016-07-07 07:18:40 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss