From: SourceForge.net <no...@so...> - 2013-04-04 08:47:14
|
Bugs item #3607858, was opened at 2013-03-13 01:04 Message generated for change (Comment added) made by eraonel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=460297&aid=3607858&group_id=50595 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: eclipse-ccase Group: 2.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Ola Persson (opersson) Assigned to: Mikael Petterson (eraonel) Summary: Renaming a file/folder does not work on first attempt Initial Comment: Trying to rename a file/folder will cause an error to be shown: Rename Resource An exception has been caught while processing the refactoring 'Rename Resource'. Reason: Element is already checked out. Clicking details only show: Element is already checked out. Clicking OK and then trying to rename again will cause the file/folder to be renamed. It appears that the parent folder was checked out the first time(requires refresh state to be shown), and because of this the second renaming attempt is successful. CCase version: 2.2.29 Eclipse SDK version 3.8.1 OS: SUSE Linux Enterprise Desktop 11 SP1 (x86_64) ---------------------------------------------------------------------- >Comment By: Mikael Petterson (eraonel) Date: 2013-04-04 01:47 Message: I checked code and it does it twice becasue normally a move is done from one directory to another. But in this special case we just rename so source and destination is the same. And I am not sure this is currently handled. I will take a look at see if it is supporting the 'rename' case. If not I will implement support for it this weekend. Thanks for all information. //mike ---------------------------------------------------------------------- Comment By: Ola Persson (opersson) Date: 2013-04-02 01:14 Message: I've uploaded the log from the console when trying to rename a file. It seems that it does things twice for some reason. /Ola ---------------------------------------------------------------------- Comment By: Mikael Petterson (eraonel) Date: 2013-03-29 13:25 Message: Hi, I have added debug ( for console) in release. So please install provided zip and run the same commands and paste console as well as log here. http://www.keepandshare.com/doc/view.php?id=6090926&da=y //mike ---------------------------------------------------------------------- Comment By: Mikael Petterson (eraonel) Date: 2013-03-28 08:10 Message: Ok thanks for valuable input. I will have a look at it asap. //mike ---------------------------------------------------------------------- Comment By: Ola Persson (opersson) Date: 2013-03-26 03:12 Message: I have tried your test version and unfortunately the behaviour is still the same. Before the attempt to rename a file everything is checked in. After the rename attempt, independent of whether the Undo or Abort button was selected in the Error dialog, the parent folder is checked out (requires a refresh state to be shown). I've added a screenshot of the error dialog. /Ola ---------------------------------------------------------------------- Comment By: Mikael Petterson (eraonel) Date: 2013-03-20 23:25 Message: I read the last line of your bug report. And to me it seems that it is a refresh problem. I have added a refresh to all resources that are involved in the rename. Please try it out and check if it solves your problem. I have made a new zip that can be downloaded from here; http://www.keepandshare.com/doc/view.php?id=6029990&da=y //mike ---------------------------------------------------------------------- Comment By: Mikael Petterson (eraonel) Date: 2013-03-20 10:54 Message: Before you perform the rename is the file/folder checkedout? I just want to verify that the move is correct. Can you see in which step the file/folder, in rename wizard, it is performed? //mike ---------------------------------------------------------------------- Comment By: Ola Persson (opersson) Date: 2013-03-20 01:08 Message: I take it as it doesn't matter anymore since you found the source of the problem, but I was using a dynamic view. /Ola ---------------------------------------------------------------------- Comment By: Mikael Petterson (eraonel) Date: 2013-03-19 11:55 Message: I checked the code and I found that the checkout operation is throwing an exception is file is already checked out. There is actually no need to throw exception but just return ok since the file is already checkout. I will fix this asap. //mike ---------------------------------------------------------------------- Comment By: Mikael Petterson (eraonel) Date: 2013-03-19 11:41 Message: Thanks for using the plugin. Are you using dynamic or snapshot view? I will have a look at this asap. //mike ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=460297&aid=3607858&group_id=50595 |