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 76268 - Physical renaming of files has no effect at a logic level
Summary: Physical renaming of files has no effect at a logic level
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-12 12:55 UTC by dnikitin
Modified: 2007-05-25 17:31 UTC (History)
0 users

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 dnikitin 2006-05-12 12:55:18 UTC
Physical renaming of files has no effect at a logic level

1. Create any C/C++ sample project
2. Select Files tab
3. Right-click any source file and rename it. (e.g. args.c --> argsNew.c)
4. Select Projects tab.
 There is argsNew.c on Projects tab
5. REFRESH Source Folder !!!  args.c (not argsNew.c) on Projects tab as before

-----
The same effect has Delete command: 
  Delete file on Files tab
  This file is still on Projects tab
Comment 1 Thomas Preisler 2006-10-13 20:17:09 UTC
Fixed. Renaming a file in the Files tab will also rename the file in the
projects tab.

Delete has a different semantic. It should be possible to delete a file from
disk without also deleting it from the project. It is an inmportant feature in
the project system that you can add none existing files to a project and
configure them. These files are usually generated (lex/yacc) so they may or may
not exist. Check the LexYacc sample to see such an example.
Comment 2 Alexander Ioffe 2006-10-17 12:39:06 UTC
If you move the file in "Files" tab there no effect in "Projects" tab
And the whole project becomes uncompilable.
Comment 3 Alexander Ioffe 2006-10-17 12:56:06 UTC
New issue cerated:
#87330
http://www.netbeans.org/issues/show_bug.cgi?id=87330