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 218925 - Unable to rename file versioned with Mercurial
Summary: Unable to rename file versioned with Mercurial
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-24 20:16 UTC by javydreamercsw
Modified: 2015-09-17 11:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (176.84 KB, text/plain)
2012-09-24 20:16 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2012-09-24 20:16:22 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) Client VM 23.3-b01

Got a couple of errors trying to rename a class from the refactoring menu. It failed when trying to rename the file. It was something related with Mercurial.
Comment 1 javydreamercsw 2012-09-24 20:16:27 UTC
Created attachment 124826 [details]
IDE log
Comment 2 Ondrej Vrabec 2012-09-25 07:46:22 UTC
cannot reproduce, maybe an issue with write access privileges of the directory? Mercurial calls srcFile.renameTo(dstFile). If that fails, there's not much more we can do. Check your write rights to the folder: Z:\NetBeans\jWrestling\jWrestling\src\main\java\games\jwrestling\core\game\object\page\
Comment 3 javydreamercsw 2012-09-25 11:53:13 UTC
I have right permissions to all the places in the drive. Renaming the file manually was successful. The things that come to mind are:
1) The file was open in the editor (I did the refactoring from the class name)
2) Slow I/O (project on an external drive)

I saw the following in the attached log that might be related to #1:

INFO [org.netbeans.modules.refactoring.spi.impl.ParametersPanel]: org.netbeans.modules.refactoring.api.RefactoringSession@2ca902 called start multiple times
Comment 4 Ondrej Vrabec 2012-09-25 12:12:54 UTC
anyway, refactoring should be prepared for a failed rename and instead of logging as SEVERE it should probable display a friendlier message:
> SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.refactoring.spi.impl.ParametersPanel$9
Comment 5 Martin Balin 2015-09-17 11:00:05 UTC
Report from old NetBeans version. Due to code changes since it was reported likely to not happen. Feel free to reopen if happens in 8.0.2 or 8.1.