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 204968 - Rename permitted on project root folder in Files tab
Summary: Rename permitted on project root folder in Files tab
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.1
Hardware: PC Windows Vista
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 06:34 UTC by MackSix
Modified: 2011-11-17 07:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-11-11 06:34:53 UTC
1) Open a project.
2) Goto Files Tab and highlight project folder.
3) Open Properties Window if not open.
4) Rename Project Folder in Properties:Name field. This renames folder but does not rename the project name. The project name always shows for project folder in the Files Tab.
5) Return to projects tab and hover mouse cursor over name of project and see if folder name reflects new name. Sometimes it does, sometimes it doesn't.
6) Regardless of step 5, right click project and choose Run.
7) Result: Error: Could not find or load main class com.sun.example.mvc.Main
Java Result: 1
8) Look at project Propertis>>Run>>Main Class>>Browse Button. No classes are listed.*
9) By now if you hover the mouse over the project name in Projects Tab, it may reflect the new folder name, but it still won't run even if the name is correct.

Solution 1: If you close the project and reopen it, it may run OK and everything is well. This may or many not work, if not try Solution 2.

Solution 2: Close project and close NetBeans, restart and reopen project. This may or may not work, if not, try Solution 3.

Solution 3: Close NetBeans and delete .netbeans/dev/var/cache/ directory. Restart and project should run.

*One time when project would not run, the classes did show in Properties>>Run>>Main Class>>Browse Button, but selecting the Main class again did not work without closing project and reopening it.
Comment 1 Tomas Zezula 2011-11-11 06:51:57 UTC
The Project folder rename in Files View is not supported, use the Rename Project in Project tab which does correctly moves the project.
The Files View should not allow project rename.
Comment 2 Jesse Glick 2011-11-16 00:39:06 UTC
In fact canRename is false, i.e. F2 does not permit in-place rename. Reporter just went out of the way to find another UI to rename the node.
Comment 3 Jesse Glick 2011-11-16 00:40:07 UTC
core-main #fc365ddec6f3
Comment 4 Quality Engineering 2011-11-17 07:30:51 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/fc365ddec6f3
User: Jesse Glick <jglick@netbeans.org>
Log: #204968: Rename permitted on project root folder in Files tab