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 258466 - Copy and paste for an aux file does not work
Summary: Copy and paste for an aux file does not work
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-21 13:11 UTC by chakie
Modified: 2017-04-20 14:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot showing how the file can be copied (84.82 KB, image/png)
2016-03-21 13:12 UTC, chakie
Details
Screenshot showing that paste is available (58.38 KB, image/png)
2016-03-21 13:12 UTC, chakie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chakie 2016-03-21 13:11:44 UTC
I have a directory with plain text config files that show up in my project tree. I needed to duplicate one file. Right click the file, select "Copy", right click the same folder it's in, select "Paste". I hear a beep and nothing happens.

Expected result: a new file with some "foo copy" or similar name with the name selected, ready for me to change it to whatever I wanted.

If copy and paste to duplicate a file is not supposed to work that way, it should perhaps be disabled altogether for those folders?
Comment 1 chakie 2016-03-21 13:12:19 UTC
Created attachment 158947 [details]
Screenshot showing how the file can be copied
Comment 2 chakie 2016-03-21 13:12:58 UTC
Created attachment 158948 [details]
Screenshot showing that paste is available
Comment 3 soldatov 2016-03-21 13:24:49 UTC
Chakie, Did you see https://netbeans.org/bugzilla/show_bug.cgi?id=250964#c1 ?
Comment 4 chakie 2016-03-21 13:53:44 UTC
No. I didn't do any extensive search. I looked at the suggested possible duplicates and decided this was not a duplicate.

In the Java version I use copy&paste all the time to duplicate files and it works as expected. A very handy way to create more source without resorting to a console or file damager.
Comment 5 Alexander Simon 2016-03-21 14:02:58 UTC
Hi chakie,

It seems you selected "Always Absolute" File Path Mode in Tools->options->C/C++->Priject Options.

Please, try:
- select "Always Relative"
- reopen your project
Does it resolve copy-paste problem?
Comment 6 chakie 2016-03-21 14:10:00 UTC
It was set as "Always Relative". I had seen no need to ever touch it. Using "Always Absolute" gives the same error (or at least lack of copied file). I restarted a few times with different variations and still no copied file. 

Btw, on OSX the settings are in NetBeans->Preferences->...
Comment 7 Alexander Simon 2017-04-03 13:02:41 UTC
fixed in enun, branch release82, changeset 2c717553f09f
Comment 8 Quality Engineering 2017-04-11 01:53:02 UTC
Integrated into 'main-silver', will be available in build *201704110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d44c5cb2176d
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #258466 Copy and paste for an aux file does not work
(transplanted from 2c717553f09fd383b71d03894db62ef56be7eff4)
Comment 9 ilia 2017-04-13 10:49:01 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=258466 Changesets:
    http://hg.netbeans.org/releases/rev/2c717553f09f # fixed Bug #258466 Copy and paste for an aux file does not work
Comment 10 soldatov 2017-04-20 14:43:22 UTC
Verified in NetBeans IDE 8.2 (Build 201704181436)