Bug? Rename Classes let a copy in the folder

MarkusR

Well-Known Member
Licensed User
Longtime User
hello,
i renamed many classes and today i see the old file is still there in folder.

create
save
rename
save

there a 2 files.
please delete the old one in trash can or just rename it.
 

MarkusR

Well-Known Member
Licensed User
Longtime User
ok. not a big problem for me.
the save way it to delete it in to trash can but i prefer closing open files and renaming the file only, refresh the file list.
or rename to .bas.del then i am sure it is not used.
i will save all used files now and then i know really which i can delete.
 

MarkusR

Well-Known Member
Licensed User
Longtime User
A simple dialog should be enough:

"Do you want to keep 'the original'?"

[yes] as default button.

that will confuse the user at rename and its annoying. renaming a file with file system is save.
create new and delete old is risky, i think that is the reason why the old file stay in folder.
or the editor behind did not support rename.
 

LucaMs

Expert
Licensed User
Longtime User
Markus, your and my English are too different :D, I don't undestand you... sometimes.

Wir sollten auf Deutsch sprechen :D

What I meant was simply an "answer" to:
Deleting code modules is something that should be done really carefully
This is true; but...
If I'm not mistaken, I have not investigated much, when you rename a module, a copy is created with the new name and the project will use this new copy; so just ask the user if he wants to delete keep the original file - setting the button [Yes] as defaut should be enough.



Um... No, everything is not so simple, given the matter of shared modules (with also the latest news that I still have to read well).
 

MarkusR

Well-Known Member
Licensed User
Longtime User
@LucaMs
yes maybe, if me write illegibly i can try to explain with other words.
the problem with english is that one german word exist 10x in english but i give my best to find one that match best and its understandable in context and sentence.

What I meant was simply an "answer" to:
if u rename a file with windows file system there are no old file for delete.
and the other solution by recreate the file with save as.. its possible to put the old file into the windows recycle bin so it is not lost direct.
btw the class name should be part of the source code (i need to open a new question if it is possible) than u do not need to care about the file name for shared modules.
 

MarkusR

Well-Known Member
Licensed User
Longtime User
Yes but we are talking about renaming a module from IDE
i see no problem there. erel said its just because design.
 
Top