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.
I tried to rename a package, which contained a sub-package. This failed, leaving me with half of the source files copied and the other half with refactored package names, but in the wrong location. I had to manually move the java files and remove the old package folders to get things back to normal. I use Git and Maven.
Created attachment 125640 [details] Git error message This is a Git bug I receive with some refactorings. Possibly this has something to do with it.
I noticed that when the refactor is initiated as a simple rename operation, it will work. (i.e. slow double clicking on the package name and typing in a new name.)
attach the messages.log with the error please (http://wiki.netbeans.org/FaqLogMessagesFile)
Created attachment 125670 [details] messages.log
Created attachment 125671 [details] older messages log Some older messages, probably the newer ones contain all error messages for the bug report.
Ralph, are you sure the refactoring works ok or do these log messages indicate a problem? > INFO [org.netbeans.modules.refactoring.spi.impl.ParametersPanel]: org.netbeans.modules.refactoring.api.RefactoringSession@3f4b08e6 called start multiple times > INFO [org.netbeans.modules.refactoring.spi.impl.ParametersPanel]: org.netbeans.modules.refactoring.api.RefactoringSession@6e3ecc3a called start multiple times What git does is simple java.io.File.renameTo, we cannot do more. Failed renameTo could mean that the rename is performed twice or the target exists but i assume refactoring runs just once. This is another duplicate of a failed rename.
(In reply to comment #6) > Ralph, are you sure the refactoring works ok or do these log messages indicate > a problem? > > INFO [org.netbeans.modules.refactoring.spi.impl.ParametersPanel]: org.netbeans.modules.refactoring.api.RefactoringSession@3f4b08e6 called start multiple times > > INFO [org.netbeans.modules.refactoring.spi.impl.ParametersPanel]: org.netbeans.modules.refactoring.api.RefactoringSession@6e3ecc3a called start multiple times These are just informative about the progress support. > What git does is simple java.io.File.renameTo, we cannot do more. Failed > renameTo could mean that the rename is performed twice or the target exists but > i assume refactoring runs just once. > This is another duplicate of a failed rename. From the messages.log it looks to be a problem in LocalHistory.
*** Bug 219928 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 219534 ***