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.
Summary: | Copy & paste functionality | ||
---|---|---|---|
Product: | platform | Reporter: | tim_sa <tim_sa> |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | anebuzelsky, augcampos, Awerin, ceklock, diek, hmichel, ijacek, inonit, issues, jiriprox, MackSix, marfous, markiewb, mmirilovic, muellermi, ppisl, rudyment, theosib |
Priority: | P2 | ||
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Video
messages.log lolg |
Description
tim_sa
2011-11-30 09:21:39 UTC
This seems serious the video isn't working for me. could be a duplicate of #88161 please provide more info about your environment, thanks Created attachment 113695 [details]
Video
I've uploaded the video to the issuezilla, hopefully this allows you to watch it.
Environment is as follows:
Windows 7 SP1
Core i7
16 Gb RAM
thanks for the video. some more questions: - can you reproduce that with a clean user dir? - does the IDE or notepad run in virtual box? - is it reproducible with every editor window and every input field in the ide? - does the paste action work if you don't select the text first? seems like some sort of 'auto-copy' plugin being installed... > - can you reproduce that with a clean user dir? When this happened I had just installed build 201111242103 - I clean out the userdirs before i start working with different builds. > - does the IDE or notepad run in virtual box? There wasn't any virtualization involved As I mentioned in the initial report I don't know how to reproduce this, which is why I provided the screen-cast of it occurring. I first noticed the behavior in build 201109141017 ( http://forums.netbeans.org/viewtopic.php?t=45033 ) when I was doing a significant amount of copying and pasting between netbeans and excel. One other member of the netcat process has also noted that he's seen this behaviour (See the previously mentioned URL), so I'm pretty sure that it isn't something peculiar to my environment I've seem it as well, but it cannot it reproduce it. Steps what I did: 1) select some text from textarea in firefox and ctrl-c 2) paste action in Netbeans editor (java file) -> previous content of clipboard was pasted, not the current one 3) paste action in Notepad -> content captured as step 1 was pasted I had a suspicion at one point that this may be related to the flavours of the text available on the clipboard. E.g. there may be a rich text flavour in addition to the plain text. I don't know for sure. still cannot reproduce in: Product Version: NetBeans IDE Dev (Build 20111205-4801b56f0c8e) Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02 System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb) can anybody reproduce with this command line switch? -J-Dnetbeans.slow.system.clipboard.hack=false This just happened to me again using build 201112030901 http://www.screencast-o-matic.com/watch/cXl1iCUSo (I tried to attach the file to bugzilla, but got an error indicating the file was too large) I was not using the -J-Dnetbeans.slow.system.clipboard.hack=false command line switch the other applications that i tried copying from where notepad++, FireFox and Chrome *** Bug 206065 has been marked as a duplicate of this bug. *** *** Bug 206075 has been marked as a duplicate of this bug. *** (In reply to comment #9) > can anybody reproduce with this command line switch? > > -J-Dnetbeans.slow.system.clipboard.hack=false anybody tried the above switch and reproduced this issue? (In reply to comment #13) > (In reply to comment #9) > > can anybody reproduce with this command line switch? > > > > -J-Dnetbeans.slow.system.clipboard.hack=false > > anybody tried the above switch and reproduced this issue? Its now part of my netbeans.conf, so is enabled every time that I start. Haven't had any issues with it yet, however I've only been using it for part of a day. Will report back in a while as to whether it made a difference or not Yes, I experienced it just now running 7.1 with this in my netbeans.conf (as part of netbeans_default_options): -J-Dnetbeans.slow.system.clipboard.hack=false This is on JDK 1.7, NB 7.1, Windows 7 x64 Unfortunately I can't yet figure out how to get to the point where I can reproduce it. (I can reproduce it right now by trying to paste from another application into NetBeans; it seems to fail for any application, pasting code earlier copied in NetBeans instead of what is on the system clipboard.) The good news is that this time I did not have to restart the IDE to fix it. I'm not sure what fixed it, but I believe it was copying something else onto the clipboard from *within* NetBeans (no amount of copying things from *outside* NetBeans seemed to do the trick). This then allowed me to copy from external applications again. But sorry I was not more careful, so I'm not quite exactly sure what sequence I followed. *** Bug 207548 has been marked as a duplicate of this bug. *** Standa, could you please evaluate this ASAP ? We might consider this one as a candidate for 7.1.1 *** Bug 208614 has been marked as a duplicate of this bug. *** *** Bug 208715 has been marked as a duplicate of this bug. *** While I've had a lot of trouble with pasting what I copy from other programs, I'm now having trouble pasting what I copy from Netbeans itself. Now, I've got Netbeans in some weird state where it cannot seem to alter the clipboard, so regardless of what I copy, what gets pasted is something I copied earlier. Addendum to my last comment: If I use the Edit menu, it works correctly within Netbeans. This bug arises if I use Ctrl-C / Ctrl-V. This doesn't change the fact that I can't paste into Netbeans what I copied from another program, regardless of whether or not I use the Edit menu. Another addendum: Using the edit menu seems to have gotten Netbeans unstuck with regard to copy/paste WITHIN Netbeans. If I cannot paste text that have I copied in other applications, then usually the copy & paste items in the context menu of the editor are disabled (In reply to comment #14) > (In reply to comment #13) > > (In reply to comment #9) > > > can anybody reproduce with this command line switch? > > > > > > -J-Dnetbeans.slow.system.clipboard.hack=false > > > > anybody tried the above switch and reproduced this issue? > > Its now part of my netbeans.conf, so is enabled every time that I start. > Haven't had any issues with it yet, however I've only been using it for part of > a day. > > Will report back in a while as to whether it made a difference or not This still happens when using the -J-Dnetbeans.slow.system.clipboard.hack=false (In reply to comment #16) > The good news is that this time I did not have to restart the IDE to fix it. > I'm not sure what fixed it, but I believe it was copying something else onto > the clipboard from *within* NetBeans (no amount of copying things from > *outside* NetBeans seemed to do the trick). This then allowed me to copy from > external applications again. > > But sorry I was not more careful, so I'm not quite exactly sure what sequence I > followed. This is the behavior that I experience as well Reporters, please check messages.log for any exceptions when clipboard operation fails. There's similar bug #204355 that's been caused by third-party clipboard listener... I have a really basic WinXP installation. The only thing "weird" about my setup is that it's installed in Parallels, so Parallels tools are installed, and probably one of those is a clipboard listener, because the clipboard is shared between the Mac and Windows. This may be a useful clue as to what's going on. If all Java apps had this trouble, then we might have a case for blaming Parallels, but that has not been my experience. (In reply to comment #28) > I have a really basic WinXP installation. The only thing "weird" about my > setup is that it's installed in Parallels, so Parallels tools are installed, > and probably one of those is a clipboard listener, because the clipboard is > shared between the Mac and Windows. This may be a useful clue as to what's > going on. If all Java apps had this trouble, then we might have a case for > blaming Parallels, but that has not been my experience. Ok, that's a new info. If you put something to clipboard in Mac, then switch to Parallels you have to activate some other application first, then switch to NetBeans to update its clipboard. By default NetBeans checks for external clipboard changes only on main window de(activation). If you start NetBeans with -J-Dnetbeans.slow.system.clipboard.hack=false command-line switch the clipboard should work as expected - at least in your case... I've tried pasting through another app. For instance, I can paste into Notepad then copy again and then past into Netbeans. That usually doesn't work. (In reply to comment #29) > Ok, that's a new info. If you put something to clipboard in Mac, then switch to > Parallels you have to activate some other application first, then switch to > NetBeans to update its clipboard. By default NetBeans checks for external > clipboard changes only on main window de(activation). > If you start NetBeans with -J-Dnetbeans.slow.system.clipboard.hack=false > command-line switch the clipboard should work as expected - at least in your > case... I don't know if any of the following details are relevant, but they came to mind as I was reading the above. - My setup is a dual screen one. - I don't run any virtualization software - I often remotely connect to other computers using Remote Desktop Connections Reporters, please run your IDE with switch -J-Dorg.netbeans.NbClipboard.level=FINE to turn logging in NB clipboard on. When you reproduce the problem, please attach new message.log and reopen, thanks. I'm still having this problem. I'd like to try "-J-Dorg.netbeans.NbClipboard.level=FINE", but I have no idea where to put it. Thanks. (In reply to comment #33) > I'm still having this problem. I'd like to try > "-J-Dorg.netbeans.NbClipboard.level=FINE", but I have no idea where to put it. > Thanks. Put it at your {NB_INSTALL}/etc/netbeans.conf file. Use the netbeans_default_options property for that. Thank you. That option helped a lot. I'll let you know if it fails at any point. Why isn't FINE the default setting? (In reply to comment #35) > Thank you. That option helped a lot. I'll let you know if it fails at any > point. > > Why isn't FINE the default setting? It will generate a lot of log and it is not intended to polute the log with fine grained log. AFAIK WARNING is the default setting for logs for NetBeans. Just for a second, imagine the whole IDE running with FINE option, since we have hundreds, probably thousands of logs being printed, so it probably would be a mess :) Created attachment 120800 [details]
messages.log
Two things: (1) It's still set to FINE, but it's no longer pasting from the clipboard. That seems to be a one-time event. Now, it'll only paste whatever was copied inside of NetBeans. (2) I've uploaded a log from where I started NetBeans, pasted (the wrong thing), undid the paste, and then quit. (In reply to comment #37) > Created attachment 120800 [details] > messages.log There are no clipboard-related log messages in the attachment. And it doesn't seem you've adjusted the logging in your netbeans.conf either... The file I modified is named: C:\Program Files\NetBeans Dev 201206130001\etc\netbeans.conf And I modified this line: netbeans_default_options="-J-Dorg.netbeans.NbClipboard.level=FINE -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true -J-Dplugin.manager.check.updates=false" The log file I attached is this one (the newest file in that directory at the time): C:\Documents and Settings\Administrator\.netbeans\dev\var\log\messages.log.2 So, what did I do incorrectly? Thanks. This is still valid on 201209110001. Also it looks like the previous comment is expecting feedback from NetBeans team but it was resolved incomplete? Changing to reopen so it gets visibility again. Probably a duplicate of #88161 *** Bug 217900 has been marked as a duplicate of this bug. *** I cannot copy new content to clipboard. Happens, once per day, restarting netbeans helps. Product Version: NetBeans IDE Dev (Build 201209120001) Java: 1.7.0_04; Java HotSpot(TM) 64-Bit Server VM 23.0-b21 System: Linux version 3.0.0-25-generic running on amd64; UTF-8; en_US (nb Created attachment 124320 [details]
lolg
I just add log from -J-Dorg.nbeans.NbClipboard.level=FINE, but i don't see anything useful.
I can copy and paste inside one instance of netbeans. If I copy something from netbeans to clipboard, I cannot paste it in other program. Vice versa, I cannot copy from f.e. chrome to netbeans. Also Clipboard History is not refreshing its list.
I happens to me too - not once per day, but three, four -times daily and just the IDE restart helps. :/ I'll try to attach the log too once I'll reproduce it with the logging switch. *** Bug 218456 has been marked as a duplicate of this bug. *** It happens on Solaris as well *** Bug 218549 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 218447 *** 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) I am using netbean 7.1 and I am having same problem, the only fix is when I close some netbean open files, and leave only one or three (In reply to mouleoub from comment #52) > I am using netbean 7.1 and I am having same problem, the only fix is when I > close some netbean open files, and leave only one or three Just saw the same issue using NetBeans 11 |