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 246484

Summary: Pasting a file/s from 1 folder to another folder should NOT automatically create *_1 files
Product: platform Reporter: sproger1
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: chrizzly
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description sproger1 2014-08-15 21:31:28 UTC
When copying and pasting file/s within the same folder, then the current behaviour of appending '_1' seems reasonable. 

BUT, when copying a file/files from one directory to another directory, then it is often the case that the USER may want to replace any files with the same name (OR the user may be unaware of the duplicate names, and should be notified and given the option to cancel). However, the netbeans IDE does not provide any option to replace files with the same name, nor any warning of the duplicate file names. The standard behaviour for almost every File Explorer/Manager/IDE for almost every Operating System, is to GIVE THE USER a dialog notifying them of the duplicate file names and letting the USER decide whether to replace or rename the conflicting files OR whether to cancel the Copy/Paste task.

This is an extremely annoying issue that occurs frequently(at least for me, and every Netbeans IDE user I know), and an issue for which users have been complaining about for several years now.

IMHO this is easy to fix and it is incomprehensible why such basic functionality is missing in an "Integrated" development Environment. A simple pop-up dialog, and some basic string/file logic is all that is needed to make this issue go away. Please fix. Having to add "QuickOpener plugin" and right-click "Open in File Manager", then copy/pasting using the default operating system file manager to do simple copy/paste actions is ridiculous for such a mature IDE.

Read previous complaints/comments about this issue:
https://forums.netbeans.org/topic30206.html
https://netbeans.org/bugzilla/show_bug.cgi?id=47649 - related but not the same.


Sorry for the rant, but, it is annoying that simple tasks like:
 1) copy/paste;  This Bug
 2) Renaming file extensions without having to right-click --> properties --> search for extension property --> edit; Bug # 122190
 3) Let USER decide how to handle external changes(like every modern day text editor out there); Bug # 192319
 4) Sort by natural order naming conventions e.g. {1.txt, 2.txt, 13.txt} instead of { 1.txt, 13.txt, 2.txt }(available in most file explorers/managers/IDE's); Bug # 242226
 5)... list goes on... are still botched and not yet user friendly. These simple and easy to fix usability annoyances should not exist, and are operations that are frequently performed when using the project explorer in the Netbeans IDE. It is these simple, and frequently encountered usability bugs that cause/push users to switch to other IDE's (Eclipse, IntelliJ IDEA...).
Comment 1 Jaroslav Havlin 2014-08-22 16:11:08 UTC
> IMHO this is easy to fix
Yes, but there can be various corner cases that need to be identified, e.g. what to do when the target file is a multi-file (.java + .form) and the source file is a single-file Java source - should the .form file be deleted or preserved?

The change would be semantically incompatible, so the behavior should probably depend on branding (so that current platform applications are not affected).

> and it is incomprehensible why such basic
> functionality is missing in an "Integrated" development Environment.
I guess it was designed this way because it's a dangerous operation and (in most cases) a bad practice.
But the feedback shows that the IDE is expected to help users perform their tasks rather than enforce them to use good practices.

> Having to add "QuickOpener plugin" and right-click "Open in File Manager", 
> then copy/pasting using the default operating system file manager to do simple
> copy/paste actions is ridiculous for such a mature IDE.
I agree, it is not very comfortable.

> Sorry for the rant, but, it is annoying that simple tasks like: [...]
I'm sorry, unrelated issues should be discussed in separate reports.

Thank you very much for reporting.
Comment 2 Jaroslav Havlin 2015-02-06 12:58:54 UTC
*** Bug 249190 has been marked as a duplicate of this bug. ***