omniprof opened a new issue, #7396: URL: https://github.com/apache/netbeans/issues/7396
### Apache NetBeans version Apache NetBeans 22 release candidate ### What happened When text is selected from a source file in NetBeans it can be successfully pasted into a Windows program such as NotePad++ or Microsoft Word. A second selection of text copied from the source file in NetBeans and pasted into NotePad++ or Word will fail. There is a rare occasional situation where you may be able to paste one or two more times into Notepad++ or Word but it will always stop pasting after 3 pastes. The text that cannot be pasted into NotePad++ or Word can be pasted back into a source file in the NetBeans editor. Further testing has uncovered that copying from Word and pasting into the NetBeans editor works. But when you copy from NetBeans into Word such that paste fails then you can no longer copy from Word into NetBeans. It pastes the last successful paste. ### Language / Project Type / NetBeans Component I assume this issue occurs in all project types as it relates to the editor. ### How to reproduce When text is selected from a source file in NetBeans it can be successfully pasted into a NotePad++ or Word document. A second selection of text from the source file in NetBeans to NotePad++ or Word may or may not be successful but will eventually fail. You must make a new selection each time and not paste the same selection more than once. You can always paste within NetBeans. Close and reopen NetBeans, NotePad++ and Word for each test. Restarting NetBeans allows for at least a single paste from NetBeans into another application. Subsequent pasting will always fail eventually though more often happening when you select new text and try to paste it. ### Did this work correctly in an earlier version? No / Don't know ### Operating System Windows 11 ### JDK Windows 64 bit - IMPLEMENTOR="Oracle Corporation" JAVA_RUNTIME_VERSION="21.0.3+7-LTS-152" JAVA_VERSION="21.0.3" JAVA_VERSION_DATE="2024-04-16" LIBC="default" ### Apache NetBeans packaging Own source build ### Anything else I have run multiple tests and this behaviour is consistent. One fix/hack that did work in NetBeans 20 was to add: -J-Dnetbeans.slow.system.clipboard.hack=false to the netbeans_default_options. However, this no longer works in NetBeans 22 rc4. This issue is significant as it makes using NetBeans to prepare class material extremely difficult. Needing to restart NetBeans to get a single paste into Word to work makes using NetBeans in this setting untenable. Source Code Build Environment: Version of java used to compile: IMPLEMENTOR="Oracle Corporation" JAVA_RUNTIME_VERSION="21.0.3+7-LTS-152" JAVA_VERSION="21.0.3" JAVA_VERSION_DATE="2024-04-16" LIBC="default" Version of ant used to build: 1.10.14 Version of NetBeans compiled: 22-rc4 BUILD SUCCESSFUL Total time: 16 minutes 10 seconds ### Are you willing to submit a pull request? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
