Created attachment 124433 [details]
During multiple sessions, the IDE refuses to paste data that is copied to the clipboard by other applications.
What I did during the session that is recorded in the attached log file:
- Start up the IDE
- copy a file name to the clibboard e.g. C:\Program Files\NetBeans Dev 201209150001\etc\netbeans.conf
- Menu|File|Open File
- click in the File name text box
- press [Ctrl+V]
What is copied:
some old data from what appears to be the copy result from a previous session, and appended to it, the value copied.
I tried to copy this concatenated result as a whole but it did not work either.
*** Bug 218460 has been marked as a duplicate of this bug. ***
This also occurs the other way around and has become increasingly common since 7.3. Before, it would happen sparingly, now I have to restart the IDE a few times during working days because of this issue.
Another instance. First paste worked, second failed (pasted previously copied content). This is very common nowadays.
Created attachment 124442 [details]
*** Bug 218395 has been marked as a duplicate of this bug. ***
*** Bug 218466 has been marked as a duplicate of this bug. ***
Fixed in 930d40bba6d5 - use
$ hg pull -r 930d40bba6d5 http://hg.netbeans.org/ergonomics
to get the changes and test them asap.
*** Bug 218370 has been marked as a duplicate of this bug. ***
*** Bug 218024 has been marked as a duplicate of this bug. ***
*** Bug 218477 has been marked as a duplicate of this bug. ***
So far seems better with ergonomics #930d40bba6d5 (applied as an MQ patch atop core-main #d45652dc094c).
Haven't applied the patch, but -J-Dnetbeans.slow.system.clipboard.hack=false makes it faster than ever.
Integrated into 'main-golden', will be available in build *201209190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jaroslav Tulach <firstname.lastname@example.org>
Log: #218447: More stateless NbClipboard. Rather than having one task and shared data, let's create one task for getting and one for setting the clipboard. Make sure we don't block refreshing while delivering changes after direct setContents call.
*** Bug 205697 has been marked as a duplicate of this bug. ***
Looks good so far. I haven't experienced any issues with build 201209190001 yet. :)
*** Bug 218688 has been marked as a duplicate of this bug. ***
Works in 20120920001.
Issue partially remains in 7.3 beta, i can not copy/paste e.g. product version etc from about window, on windows 7 64bit, jdk 7... the copy/paste from edit works perfectly.
today this worked, so i'm marking this issue as resolved, until i find any clue why it doesn't worked yesterday.
*** Bug 217115 has been marked as a duplicate of this bug. ***
I've seen a recurrence of this bug in build 201210240001
please see http://www.screencast-o-matic.com/watch/cl6TjhS4G for a screencast illustration.
I don't have a reason to believe we are facing the same bug. Anyway I asked for log files. Where do you have the log files with appropriate logging turned on?
Your last comment deserves invalid status, but I can't do it, as the previous reports were fine and got fixed. Marking fixed again.
Rather than opening a P1 bug on behalf of an animated movie, consider opening new bug and trying to make your report proper!
*** Bug 204957 has been marked as a duplicate of this bug. ***
I had this bug now with NetBeans 7.2.1. I can't paste in NetBeans the text that I copied from outside. I had to close and reopen NetBeans to paste the text.
Product Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.7.0_09; Java HotSpot(TM) Server VM 23.5-b02
System: Windows 7 version 6.1 running on x86; Cp1252; en_BR (nb)
Created attachment 129770 [details]
trying to paste code
trying to paste code that I copied from external source to inside netbeans, but netbeans uses the last code that I copied inside netbeans...
I'm definitely seeing this in 7.2.1. I have dual monitors, but otherwise a typical setup. Pasting into notepad works, pasting into netbeans keeps pasting old stale data. I have found a way around this, if I copy something from netbeans and paste it back into netbeans, then copy something from say notepad, then I can paste that new String from notepad into netbeans. No need to restart!
Product Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.7.0_09; Java HotSpot(TM) 64-Bit Server VM 23.5-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\jason.handuber\AppData\Roaming\NetBeans\7.2.1
Cache directory: C:\X\Tools\NetbeansCache
How do I enable the "appropriate logging" and where do those log files go?
Reopen when you see the problem in 7.3RC1.
Btw. this bug has P1 priority and thus it technically prevents release of 7.3. Reopening such bug with an outdated observation made while using previous version of the product is not fair.
> How do I enable the "appropriate logging" and where do those log files go?
I am using NetBeans 7.3 on Windows 7 x64 with jdk 7u17.
pasting text into the editor text windows is pasting text that was previously in the copy/paste buffer.
If I paste the expected text into notepad.exe, then copy it from there, I can successfully paste the intended text into the NetBeans window successfully.
Without log files, there is not much I can do with your inquiry.
(In reply to Jaroslav Tulach from comment #29)
> Without log files, there is not much I can do with your inquiry.
Lol... never happened to you?
As the reporter, I am re-opening this based on a new experience. A clipboard error, perhaps the same, perhaps another one helping to shed some light on this, can be reproduced easily where the culprit is apparently NetBeans 8.0.1. Please advise if I should open a separate bug for this.
The Acrobat reader fails to copy data to the clipboard while NetBeans is running.
While NetBeans is not generally known for this interference, other applications are. Please see http://stackoverflow.com/questions/16907978/after-sending-text-to-clipboard-i-get-errors-in-some-programs
There is a message from an Adobe support person without much hope for a solution from their side: https://forums.adobe.com/message/4096817
I stumbled on the clipboard bug once again WITHOUT using Adobe reader while working between NetBeans within a Windows terminal session and Microsoft Excel.
True, this might a windows terminal issue, but the cut and pste errors vanished after closing NetBeans and using Notepad++ as the editor.
So perhaps from this you can understand that I am using the Adobe reader as a proxy to provide a more reproducible scenario than a windows terminal session etc.. which is less reproducible, but nevertheless more serious for my work than copying text from the Adobe reader :)
Platforms on which this occurs are Windows 7, Windows Server 2008 AND Windows XP.
I confirm I able to reproduce interference between Adobe Reader and NetBeans 8.0.1. When NetBeans editor is opened the Reader shows error if copy action (Ctrl+C) is performed.
Please, open a separate bug for this. Thank you.
Product Version: NetBeans IDE 8.0.1 (Build 201408242300)
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Thanks. I have created bug 247585
This is happening to me on Dev 201704110002, which I installed because it resolved another bug (jumping while scrolling with mouse wheel). Didn't notice this in any previous version. Very annoying. Only happens when PASTING text copied from another application, and seems to happen at random times, but once it starts happening it lasts until Netbeans is restarted.
The paste is working for me, I don't have any plans to work on Pere's inquiry.