If someone is more brave can add the following option to NetBeans right now:
That would turn off the NetBeans Clipboard hacks, including the part of the
code mentioned in my PR.

-J-Dnetbeans.slow.system.clipboard.hack=false

On Wed, Aug 31, 2022 at 1:55 PM Scott Palmer <[email protected]> wrote:

> No Docker, No containers.  Just a normal Windows install running directly
> on a Windows PC/laptop. The problem is intermittent and reported by many.
> I am not convinced that it isn't a general problem for all Windows users,
> most cut and paste happens entirely within the IDE after all - that always
> works. It's only pasting to or from an external app that has an issue -
> sometimes.  When it happens, it continues to happen until a copy is made
> from a non-editor window within NetBeans, e.g. the About dialog, or
> NetBeans is restarted.  When it doesn't happen, no amount of repeated
> copy/paste will trigger it on-demand.  It sneaks up on you.  I usually have
> Nb running for many days at a time... then every so often I will try to
> copy something to an email, or from a web page or terminal and suddenly
> it's not working.
>
> I'm going to try Laszlo's patch, though it will take running for a
> long time to have confidence that the problem isn't there.
>
>
> Scott
>
>
> On Wed, Aug 31, 2022 at 2:46 PM Peter Blemel <[email protected]> wrote:
>
> >
> > If I may chime in, if the JRE/JDK and NetBeans are the same and the
> > problem isn't reproducible then I would suggest first determining what
> > might be different between this user's environment and others where the
> > problem doesn't present itself. For example, confirming that this user's
> > NetBeans isn't inside of a container like Docker or AppImage that might
> be
> > sitting between the Windows clipboard <-> NetBeans and preventing
> clipboard
> > transfers as part of some sort of security policy.  This may not be the
> > case, but it seems like a suspect to eliminate in any case.
> >
> > Regards,
> > Peter
> >
> > ________________________________
> > From: László Kishalmi <[email protected]>
> > Sent: Wednesday, August 31, 2022 12:23 PM
> > To: [email protected] <[email protected]>
> > Subject: Re: Copy Paste still an issue
> >
> > Well, it is ok to test it even if you do not have clipboard issues. Just
> to
> > make sure it does not make Windows Clipboard usability worse.
> >
> > Also as this is a platform code, tests NetBeans running on JDK 8 are
> > welcome as well.
> >
> > On Wed, Aug 31, 2022 at 11:15 AM Christian Lenz <[email protected]>
> > wrote:
> >
> > > I’m using Windows but can someone please give an exact reproducable
> case,
> > > where I can test it on my machine to test the PR too?
> > >
> > >
> > > Cheers
> > >
> > > Chris
> > >
> > > Von: László Kishalmi
> > > Gesendet: Mittwoch, 31. August 2022 20:05
> > > An: [email protected]
> > > Betreff: Re: Copy Paste still an issue
> > >
> > > Well, I'm lucky enough not having Windows around.
> > > Though it seems we did a lot of hacks around the clipboard in the early
> > > ages, in order to work around AWT/Native clipboard issues.
> > > There are a chance that the AWT/Native situation has improved over the
> > > years and our hacks become a source of nasty bugs.
> > >
> > > My suspect would be:
> > >
> > >
> >
> https://github.com/apache/netbeans/blob/a8f7024d72051006c124489430a961afbcdf346a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L344
> > >
> > > Well someone brave enough having Clipboard issues on Windows might try
> > this
> > > one:
> > > https://github.com/apache/netbeans/pull/4572
> > >
> > >
> > >
> > > On Wed, Aug 31, 2022 at 9:16 AM Scott Palmer <[email protected]>
> wrote:
> > >
> > > > It’s an intermittent issue on Windows that has been around for a long
> > > time.
> > > >
> > > > Edit the netbeans.conf file in netbeans/etc/ to add:
> > > >  -J-Dorg.netbeans.NbClipboard.level=FINEST
> > > >
> > > > I keep forgetting after installing new versions :-(
> > > >
> > > > That may provide needed details in the logs.
> > > >
> > > > Hopefully we can get this sorted… It’s been a thorn in my side for
> > years.
> > > >
> > > >
> > > > Scott
> > > >
> > > > > On Aug 31, 2022, at 11:13 AM, Neil C Smith <[email protected]>
> > > > wrote:
> > > > >
> > > > > On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <
> > > [email protected]>
> > > > wrote:
> > > > >> That I am not the only one who comes across this issue leads me to
> > > > believe it is not a 'just on my machine' problem.
> > > > >
> > > > > It is definitely not just on your machine, but it is also not on
> > every
> > > > > machine.  The bug linked previously has a bunch of questions and a
> > > > > link to a previous thread on here with flags and things to test.
> > > > >
> > > > > Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
> > > > >
> > > > > Until someone working on the IDE can reproduce the circumstances of
> > > > > this issue, I don't see it getting fixed.
> > > > >
> > > > > Best wishes,
> > > > >
> > > > > Neil
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > 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
> > > > >
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
>

Reply via email to