Irrecoverable loss when Safe Delete in Maven multi-module project

In a Maven based muli-module project, in Package view, I wanted to use
Safe Delete to delete a sub package.

In the end I had to restore a HDD backup to recover.
I did the operation twice in an attempt to reproduce the problem. The
behaviour wasn't exactly the same.

The first time, I had a dialog proposing me to delete the package in
all sub-modules, all checked by default.
I uncheked everything but the package I really wanted to delete in a
given sub-module.

A few minutes later, I realized something was wrong, classes where
missing in ALL modules.
But no Undo or Version Control -> Local History possible.
Even the SVN Commit dialog was not showing al the class deleted, and
even it were, I could only do a revert and lose my changes.

Hence the necessary backup restore.

After restore I tried exactly the same SAfe Delete on the same
sub-module, but this time no dialog asking if I wanted to delete also
in other sub-modules.
And same, no Undo or Version Control -> Local History possible.


I think the Dialog asking for other sub-modules delete is fine, but the
default should be to uncheck everything but the very package the user
want to delete.
Obviously, an Undo and Local History option to revert the operation
would be nice.

There's definitely something going wrong with this function.

/nodje

2 comments
Comment actions Permalink

Hello nodje,

2Undo: I believe that if you select containing directory in Project view
then Local History would be abvailable.

What is a sub-module? Actually IDEA doesn't ask if you want to delete package
in Package View in one module. It assume that you want to delete the package.
Do you have any thirdparty plugins installed?

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

In a Maven based muli-module project, in Package view, I wanted to use
Safe Delete to delete a sub package.

In the end I had to restore a HDD backup to recover.
I did the operation twice in an attempt to reproduce the problem. The
behaviour wasn't exactly the same.
The first time, I had a dialog proposing me to delete the package in
all sub-modules, all checked by default.
I uncheked everything but the package I really wanted to delete in a
given sub-module.
A few minutes later, I realized something was wrong, classes where
missing in ALL modules.
But no Undo or Version Control -> Local History possible.
Even the SVN Commit dialog was not showing al the class deleted, and
even it were, I could only do a revert and lose my changes.
Hence the necessary backup restore.

After restore I tried exactly the same SAfe Delete on the same
sub-module, but this time no dialog asking if I wanted to delete also
in other sub-modules.
And same, no Undo or Version Control -> Local History possible.
I think the Dialog asking for other sub-modules delete is fine, but
the
default should be to uncheck everything but the very package the user
want to delete.
Obviously, an Undo and Local History option to revert the operation
would be nice.
There's definitely something going wrong with this function.

/nodje



0
Comment actions Permalink

Hello Anna,

I don't have any 3rd party plugin installed.
When I say sub-module, I mean just a Maven module in a mutli-module
application.

I really had a dialog asking in which module I wanted to delete the
selected package.

rgds


On 2010-06-16 19:51:04 +0800, Anna Kozlova <Anna.Kozlova@jetbrains.com > said:

Hello nodje,

2Undo: I believe that if you select containing directory in Project
view then Local History would be abvailable.

What is a sub-module? Actually IDEA doesn't ask if you want to delete
package in Package View in one module. It assume that you want to
delete the package. Do you have any thirdparty plugins installed?

Thank you

---------------------
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

>> In a Maven based muli-module project, in Package view, I wanted to use
>> Safe Delete to delete a sub package.
>>
>> In the end I had to restore a HDD backup to recover.
>> I did the operation twice in an attempt to reproduce the problem. The
>> behaviour wasn't exactly the same.
>> The first time, I had a dialog proposing me to delete the package in
>> all sub-modules, all checked by default.
>> I uncheked everything but the package I really wanted to delete in a
>> given sub-module.
>> A few minutes later, I realized something was wrong, classes where
>> missing in ALL modules.
>> But no Undo or Version Control -> Local History possible.
>> Even the SVN Commit dialog was not showing al the class deleted, and
>> even it were, I could only do a revert and lose my changes.
>> Hence the necessary backup restore.
>>
>> After restore I tried exactly the same SAfe Delete on the same
>> sub-module, but this time no dialog asking if I wanted to delete also
>> in other sub-modules.
>> And same, no Undo or Version Control -> Local History possible.
>> I think the Dialog asking for other sub-modules delete is fine, but
>> the
>> default should be to uncheck everything but the very package the user
>> want to delete.
>> Obviously, an Undo and Local History option to revert the operation
>> would be nice.
>> There's definitely something going wrong with this function.
>>
>> /nodje


0

Please sign in to leave a comment.