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 192086 - DefaultProjectOperationsImplementation.doMoveProject: cannot rename a project
Summary: DefaultProjectOperationsImplementation.doMoveProject: cannot rename a project
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-18 05:59 UTC by carl14706
Modified: 2013-08-15 11:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 148996


Attachments
stacktrace (2.39 KB, text/plain)
2010-11-18 06:00 UTC, carl14706
Details

Note You need to log in before you can comment on or make changes to this bug.
Description carl14706 2010-11-18 05:59:59 UTC
Build: NetBeans IDE 6.9.1 (Build 201007282301)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Windows 7

User Comments:
GUEST: renameing a directory

GUEST: renaming a project

GUEST: Trying to rename a project and its associated folder using the IDE.

GUEST: Problem with the menu command to rename the project.

GUEST: I was trying to rename project and were using "Also rename project folder" option. After that NB chrashes.

GUEST: I was renaming a project from "Nasd100TickerParser" to "Nasd100_SymbolParser".

GUEST: Tentei renomear o projeto.

GUEST: Changing the name of a package. Because refactoring does not support changing from identical names with different letter cases, I was changing the package name from Amaze to Amaze3, before changing again to amaze. But, before this, there was already an error (hence the Amaze3, instead of Amaze2). The operation stopped miday, the folder wasn't renamed but the source code was modified.




Stacktrace: 
org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot rename file Problem 7b in C:/Users/Yue/Documents/NetBeansProjects to Problem 7.
   at org.netbeans.modules.masterfs.filebasedfs.utils.FSException.io(FSException.java:118)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.rename(BaseFileObj.java:342)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj$1.call(BaseFileObj.java:387)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj$1.call(BaseFileObj.java:384)
   at org.netbeans.modules.masterfs.filebasedfs.FileBasedFileSystem.runAsInconsistent(FileBasedFileSystem.java:115)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.rename(BaseFileObj.java:391)
Comment 1 carl14706 2010-11-18 06:00:03 UTC
Created attachment 103056 [details]
stacktrace
Comment 2 Jaroslav Tulach 2010-12-06 10:41:45 UTC
Filesystems just throw an IOException (which is OK). The caller is DefaultProjectOperationsImplementation.doMoveProject
Comment 3 Jesse Glick 2010-12-06 16:36:50 UTC
Seems like there is some issue with the filesystem preventing the rename; the bug is just that the IDE displays the exception reporter rather than a polite dialog.
Comment 4 Martin Kozeny 2013-08-15 11:04:29 UTC
When IOException occurs, dialog appears instead of Exceptions Reporter.