You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Scott Palmer <sw...@gmail.com> on 2021/05/12 15:22:55 UTC

Re: 12.4 Can we fix cut and paste before release?

If there is something more I can do please let me know...  I've tried to
get any relevant logs (I can't find anything interesting).
This basic feature not working is driving me mad.  Can we perhaps just get
a flag to disable any old workarounds and just always use the system
clipboard?

Scott

On Thu, Apr 29, 2021 at 3:47 PM Scott Palmer <sw...@gmail.com> wrote:

> So I've set this in my netbeans.conf file, but I don't notice anything
> that stands out in the logging.  Which file would it be in messages.log or
> uigestures?
> There is nothing relevant in messages.log and uigestures just shows that a
> paste was attempted - even though the wrong content was pasted (last thing
> copied from within Netbeans rather than what is on the system clipboard).
>
> This is the record form uigestures:
>
> <record>
>   <date>2021-04-29T11:30:43</date>
>   <millis>1619710243434</millis>
>   <sequence>1644</sequence>
>   <logger>org.netbeans.ui.actions.editor</logger>
>   <level>500</level>
>   <thread>26</thread>
>   <message>UI_ACTION_EDITOR</message>
>   <key>UI_ACTION_EDITOR</key>
>   <catalog>&lt;null&gt;</catalog>
>
> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
> on
> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
> ,typeHandlers=]</param>
>
> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
> on
> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
> ,typeHandlers=]</param>
>
> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
>   <param>org.netbeans.editor.BaseKit$PasteAction@70200aee</param>
>   <param>paste-from-clipboard</param>
> </record>
>
> Regards,
>
> Scott
>
> On Thu, Apr 8, 2021 at 4:20 PM Geertjan Wielenga
> <ge...@googlemail.com.invalid> wrote:
>
>> As stated there: “ Please run with logging enabled
>> (-J-Dorg.netbeans.core.NbClipboard=-1) and attach the
>>
>> part of log that records what happened during the broken situation.”
>>
>>
>> Thanks,
>>
>> Gj
>>
>> On Thu, 8 Apr 2021 at 22:12, Scott Palmer <sw...@gmail.com> wrote:
>>
>> > The discussion on this old bug seems to be most relevant:
>> >
>> >  https://bz.apache.org/netbeans//show_bug.cgi?id=41098
>> >
>> > Over 16 years ago this was apparently a JDK issue. (People were using
>> JDK
>> > 1.4 at the time.)
>> > See  Comment 21 <
>> https://bz.apache.org/netbeans//show_bug.cgi?id=41098#c21
>> > >
>> >
>> > I suspect the workaround (which never really worked properly) isn’t
>> > required anymore.
>> >
>> > Scott
>> >
>> >
>> > > On Apr 8, 2021, at 4:06 PM, Scott Palmer <sw...@gmail.com> wrote:
>> > >
>> > > Both directions to/from a NetBeans editor to/from something outside.
>> > Not consistent, but frequent enough - multiple times a week.
>> > >
>> > > It seems when this occurs it is like the NetBeans editor has a private
>> > clipboard.  Pasting outside NetBEans pastes the last thing copied
>> outside
>> > of NetBeans.  Pasting within a NetBeans editor pastes the last thing
>> copied
>> > from a NetBeans editor.
>> > >
>> > > Very frustrating when you are trying to copy to an email or a remote
>> > desktop session, or between stack overflow etc...
>> > >
>> > > Scott
>> > >
>> > >> On Apr 8, 2021, at 3:59 PM, Geertjan Wielenga
>> > <geertjan.wielenga@googlemail.com.INVALID <mailto:
>> > geertjan.wielenga@googlemail.com.INVALID>> wrote:
>> > >>
>> > >> It’s 100% about copying text from any NetBeans editor to somewhere
>> > outside
>> > >> NetBeans? Or also the reverse? Consistently or sporadically?
>> > >>
>> > >> Gj
>> > >>
>> > >> On Thu, 8 Apr 2021 at 21:57, Scott Palmer <swpalmer@gmail.com
>> <mailto:
>> > swpalmer@gmail.com>> wrote:
>> > >>
>> > >>> Windows 10
>> > >>> JDK 8 through 16
>> > >>>
>> > >>> See prior discussion here:
>> > >>>
>> > >>>
>> >
>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>> > <
>> >
>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>> > >
>> > >>>
>> > >>> It seems many of us are just used to Copy and Paste not working
>> > properly
>> > >>> and we have various strategies to work around it.  It shouldn’t be
>> > that way.
>> > >>>
>> > >>> Scott
>> > >>>
>> > >>>
>> > >>>> On Apr 7, 2021, at 1:15 PM, Geertjan Wielenga
>> > >>> <ge...@googlemail.com.INVALID> wrote:
>> > >>>>
>> > >>>> Operating system, JDK version, please...
>> > >>>>
>> > >>>> Gj
>> > >>>>
>> > >>>> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer <swpalmer@gmail.com
>> > <ma...@gmail.com> <mailto:
>> > >>> swpalmer@gmail.com>> wrote:
>> > >>>>
>> > >>>>> I know it probably is the same as before, but today it seems
>> worse in
>> > >>> 12.4
>> > >>>>> beta 2 than it was in 12.3.
>> > >>>>>
>> > >>>>> Cut and paste is such basic functionality that when it doesn’t
>> work
>> > it
>> > >>> is
>> > >>>>> a major source of frustration.
>> > >>>>>
>> > >>>>> Today I have been fighting cut and paste not working with NetBeans
>> > 12.4
>> > >>>>> beta 2 for a few hours.  Jumping through hoops to cut some text
>> out
>> > of a
>> > >>>>> NetBeans editor and paste it into something else is not how I
>> wanted
>> > to
>> > >>>>> spend my morning.
>> > >>>>>
>> > >>>>> This was discussed briefly in early February (see thread “System
>> > >>> Clipboard
>> > >>>>> Issues”)
>> > >>>>>
>> > >>>>> It is has been reported here
>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>> > https://issues.apache.org/jira/browse/NETBEANS-2159> <
>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>> > >>> https://issues.apache.org/jira/browse/NETBEANS-2159>>
>> > >>>>> Though that description is perhaps incomplete.  Both copying from
>> > >>> NetBeans
>> > >>>>> and pasting to NetBeans are affected.
>> > >>>>>
>> > >>>>> If you are doing cut and paste entirely within NetBeans you may
>> not
>> > see
>> > >>>>> the issue. It is only when you want to cut and paste between
>> NetBeans
>> > >>> and
>> > >>>>> an external program that it fails.  And it fails very frequently
>> in
>> > that
>> > >>>>> case.
>> > >>>>>
>> > >>>>> The sense I got was that NetBeans was trying to work around a bug
>> in
>> > the
>> > >>>>> JRE by using it’s own private clipboard.  I suspect the original
>> JRE
>> > >>> issue
>> > >>>>> is long gone and NetBeans is just creating more problems with an
>> > awkward
>> > >>>>> workaround for a problem that isn’t there.
>> > >>>>>
>> > >>>>> Regards,
>> > >>>>>
>> > >>>>> Scott
>> > >
>> >
>> >
>>
>

Re: 12.4 Can we fix cut and paste before release?

Posted by Joachim Rohde <ma...@joachimrohde.com>.
You were right Neil. After checking the add-opens and add-exports its 
working for me. So sorry for the noise and thanks.

On 6/21/22 16:53, Neil C Smith wrote:
> On Mon, 20 Jun 2022 at 14:27, Joachim Rohde
> <ma...@joachimrohde.com> wrote:
>> I realized that any NetBeans RCP project which uses Java 17 is unable to
>> use any copy/paste functionality. The IDE itself works (most of the
>> times) but if I start a small RCP project from within NetBeans the RCP
>> project is unable to copy/paste anything. Never.
>> I observed this under Linux and Windows. I'm not sure if it's the same
>> bug but maybe it could be an approach that's worthwhile investigating.
> 
> The RCP issue with 17 might be JPMS and other JDK change related?
> Have you checked your add-opens and add-exports, as well as
> -Djava.security.manager=allow, against the IDE defaults?
> 
> Best wishes,
> 
> Neil
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: 12.4 Can we fix cut and paste before release?

Posted by Eric Bresie <eb...@gmail.com>.
Not sure if this is related but I seem to recall a paste discussion on copy paste issue (with NB with the cursor) which had to do with HiDPI behavior.   Are you in HiDPI setup?

I think the discussion may have be related to this issue (1) but not sure.


  1.  https://issues.apache.org/jira/plugins/servlet/mobile#issue/NETBEANS-585


Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Neil C Smith <ne...@apache.org>
Sent: Tuesday, June 21, 2022 9:53:25 AM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>
Subject: Re: 12.4 Can we fix cut and paste before release?

On Mon, 20 Jun 2022 at 14:27, Joachim Rohde
<ma...@joachimrohde.com> wrote:
> I realized that any NetBeans RCP project which uses Java 17 is unable to
> use any copy/paste functionality. The IDE itself works (most of the
> times) but if I start a small RCP project from within NetBeans the RCP
> project is unable to copy/paste anything. Never.
> I observed this under Linux and Windows. I'm not sure if it's the same
> bug but maybe it could be an approach that's worthwhile investigating.

The RCP issue with 17 might be JPMS and other JDK change related?
Have you checked your add-opens and add-exports, as well as
-Djava.security.manager=allow, against the IDE defaults?

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: 12.4 Can we fix cut and paste before release?

Posted by Neil C Smith <ne...@apache.org>.
On Mon, 20 Jun 2022 at 14:27, Joachim Rohde
<ma...@joachimrohde.com> wrote:
> I realized that any NetBeans RCP project which uses Java 17 is unable to
> use any copy/paste functionality. The IDE itself works (most of the
> times) but if I start a small RCP project from within NetBeans the RCP
> project is unable to copy/paste anything. Never.
> I observed this under Linux and Windows. I'm not sure if it's the same
> bug but maybe it could be an approach that's worthwhile investigating.

The RCP issue with 17 might be JPMS and other JDK change related?
Have you checked your add-opens and add-exports, as well as
-Djava.security.manager=allow, against the IDE defaults?

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: 12.4 Can we fix cut and paste before release?

Posted by Jean-Marc Borer <jm...@gmail.com>.
Hi there,

May two cents. It started having this issue when I switched from Java8 to
Java11+ (Actually JDK 17). I never had such issues with NB12.4 and Java 8
before. It didn't happen either with our NB based applications with this
combination. Still wondering if we will switch to 14 and Java 17+... Well
not yet.

Cheers,

JM

On Mon, Jun 20, 2022 at 1:27 PM Joachim Rohde <ma...@joachimrohde.com>
wrote:

> I realized that any NetBeans RCP project which uses Java 17 is unable to
> use any copy/paste functionality. The IDE itself works (most of the
> times) but if I start a small RCP project from within NetBeans the RCP
> project is unable to copy/paste anything. Never.
> I observed this under Linux and Windows. I'm not sure if it's the same
> bug but maybe it could be an approach that's worthwhile investigating.
>
> Joachim
>
> On 6/17/22 21:10, Scott Palmer wrote:
> > Well I installed NB14 and forgot to add
> > -J-Dorg.netbeans.NbClipboard.level=FINEST to the conf file.... and of
> > course the clipboard has failed twice already...
> >
> > So frustrating. Why does it happen exactly when I don't have the logging
> > enabled?  Perhaps that is a clue, maybe the logging affects some race
> > condition? I don't know.
> >
> > Scott
> >
> > On Fri, Aug 6, 2021 at 11:27 AM Geertjan Wielenga
> > <ge...@googlemail.com.invalid> wrote:
> >
> >> will/won’t have.
> >>
> >> Start with a fresh userdir and a standard NetBeans.conf, just with
> >> -J-Dorg.netbeans.NbClipboard.level=FINEST.
> >>
> >> Then Neil can investigate since he nor I nor others wanting to help can
> >> reproduce this so far.
> >>
> >> Gj
> >>
> >> On Fri, 6 Aug 2021 at 17:24, Geertjan Wielenga <
> >> geertjan.wielenga@googlemail.com> wrote:
> >>
> >>> Indeed, please test without settings that regular installs will have.
> >>>
> >>> Gj
> >>>
> >>> On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@gmail.com> wrote:
> >>>
> >>>> Thanks,
> >>>>
> >>>> I’ve updated my netbeans.conf file to have
> >>>> -J-Dorg.netbeans.NbClipboard.level=FINEST as well as
> >>>> -J-Dnetbeans.slow.system.clipboard.hack=false
> >>>> Though I should probably test without that last property as well, as
> it
> >>>> isn’t what regular installs will have.
> >>>>
> >>>> I’m just doing whatever I can to avoid the frustration of a broken
> >>>> clipboard at this point though.  You can imagine how infuriating it is
> >> when
> >>>> something so basic just stops working when you need it.  Restarting
> the
> >> IDE
> >>>> so I can paste something is rather disruptive.
> >>>>
> >>>> Cheers,
> >>>>
> >>>> Scott
> >>>>
> >>>>
> >>>>> On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org>
> >> wrote:
> >>>>>
> >>>>> On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com>
> wrote:
> >>>>>> It would be great if the clipboard would work on Windows for
> NetBeans
> >>>> 12.5
> >>>>>
> >>>>> Yes, although that would involve understanding what's broken.  Just
> >>>>> spent some time having a look on my Win 10 machine (which I don't
> >>>>> usually use for development), but so far can't replicate.
> >>>>>
> >>>>> However ...
> >>>>>
> >>>>> On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com>
> >> wrote:
> >>>>>> My netbeans.conf file contains
> >>>>>> ...
> >>>>>> -J-Dorg.netbeans.core.NbClipboard=-1
> >>>>>
> >>>>> I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST
> >>>>>
> >>>>> With that I do get a lot of output from the clipboard in the log.
> >>>>> Hopefully the logging if / when it fails may tell us something.
> >>>>>
> >>>>> Incidentally, your other log output about System clipboard not
> >>>>> available is I think because the Windows clipboard can only be opened
> >>>>> by one application at a time.  Not sure if it's related or not.
> >>>>>
> >>>>> Best wishes,
> >>>>>
> >>>>> Neil
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> >>>> For additional commands, e-mail: dev-help@netbeans.apache.org
> >>>>
> >>>> For further information about the NetBeans mailing lists, visit:
> >>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: 12.4 Can we fix cut and paste before release?

Posted by Joachim Rohde <ma...@joachimrohde.com>.
I realized that any NetBeans RCP project which uses Java 17 is unable to 
use any copy/paste functionality. The IDE itself works (most of the 
times) but if I start a small RCP project from within NetBeans the RCP 
project is unable to copy/paste anything. Never.
I observed this under Linux and Windows. I'm not sure if it's the same 
bug but maybe it could be an approach that's worthwhile investigating.

Joachim

On 6/17/22 21:10, Scott Palmer wrote:
> Well I installed NB14 and forgot to add
> -J-Dorg.netbeans.NbClipboard.level=FINEST to the conf file.... and of
> course the clipboard has failed twice already...
> 
> So frustrating. Why does it happen exactly when I don't have the logging
> enabled?  Perhaps that is a clue, maybe the logging affects some race
> condition? I don't know.
> 
> Scott
> 
> On Fri, Aug 6, 2021 at 11:27 AM Geertjan Wielenga
> <ge...@googlemail.com.invalid> wrote:
> 
>> will/won’t have.
>>
>> Start with a fresh userdir and a standard NetBeans.conf, just with
>> -J-Dorg.netbeans.NbClipboard.level=FINEST.
>>
>> Then Neil can investigate since he nor I nor others wanting to help can
>> reproduce this so far.
>>
>> Gj
>>
>> On Fri, 6 Aug 2021 at 17:24, Geertjan Wielenga <
>> geertjan.wielenga@googlemail.com> wrote:
>>
>>> Indeed, please test without settings that regular installs will have.
>>>
>>> Gj
>>>
>>> On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@gmail.com> wrote:
>>>
>>>> Thanks,
>>>>
>>>> I’ve updated my netbeans.conf file to have
>>>> -J-Dorg.netbeans.NbClipboard.level=FINEST as well as
>>>> -J-Dnetbeans.slow.system.clipboard.hack=false
>>>> Though I should probably test without that last property as well, as it
>>>> isn’t what regular installs will have.
>>>>
>>>> I’m just doing whatever I can to avoid the frustration of a broken
>>>> clipboard at this point though.  You can imagine how infuriating it is
>> when
>>>> something so basic just stops working when you need it.  Restarting the
>> IDE
>>>> so I can paste something is rather disruptive.
>>>>
>>>> Cheers,
>>>>
>>>> Scott
>>>>
>>>>
>>>>> On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org>
>> wrote:
>>>>>
>>>>> On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:
>>>>>> It would be great if the clipboard would work on Windows for NetBeans
>>>> 12.5
>>>>>
>>>>> Yes, although that would involve understanding what's broken.  Just
>>>>> spent some time having a look on my Win 10 machine (which I don't
>>>>> usually use for development), but so far can't replicate.
>>>>>
>>>>> However ...
>>>>>
>>>>> On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com>
>> wrote:
>>>>>> My netbeans.conf file contains
>>>>>> ...
>>>>>> -J-Dorg.netbeans.core.NbClipboard=-1
>>>>>
>>>>> I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST
>>>>>
>>>>> With that I do get a lot of output from the clipboard in the log.
>>>>> Hopefully the logging if / when it fails may tell us something.
>>>>>
>>>>> Incidentally, your other log output about System clipboard not
>>>>> available is I think because the Windows clipboard can only be opened
>>>>> by one application at a time.  Not sure if it's related or not.
>>>>>
>>>>> Best wishes,
>>>>>
>>>>> Neil
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>>>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>
>>>>
>>>>
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: 12.4 Can we fix cut and paste before release?

Posted by Scott Palmer <sw...@gmail.com>.
Well I installed NB14 and forgot to add
-J-Dorg.netbeans.NbClipboard.level=FINEST to the conf file.... and of
course the clipboard has failed twice already...

So frustrating. Why does it happen exactly when I don't have the logging
enabled?  Perhaps that is a clue, maybe the logging affects some race
condition? I don't know.

Scott

On Fri, Aug 6, 2021 at 11:27 AM Geertjan Wielenga
<ge...@googlemail.com.invalid> wrote:

> will/won’t have.
>
> Start with a fresh userdir and a standard NetBeans.conf, just with
> -J-Dorg.netbeans.NbClipboard.level=FINEST.
>
> Then Neil can investigate since he nor I nor others wanting to help can
> reproduce this so far.
>
> Gj
>
> On Fri, 6 Aug 2021 at 17:24, Geertjan Wielenga <
> geertjan.wielenga@googlemail.com> wrote:
>
> > Indeed, please test without settings that regular installs will have.
> >
> > Gj
> >
> > On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@gmail.com> wrote:
> >
> >> Thanks,
> >>
> >> I’ve updated my netbeans.conf file to have
> >> -J-Dorg.netbeans.NbClipboard.level=FINEST as well as
> >> -J-Dnetbeans.slow.system.clipboard.hack=false
> >> Though I should probably test without that last property as well, as it
> >> isn’t what regular installs will have.
> >>
> >> I’m just doing whatever I can to avoid the frustration of a broken
> >> clipboard at this point though.  You can imagine how infuriating it is
> when
> >> something so basic just stops working when you need it.  Restarting the
> IDE
> >> so I can paste something is rather disruptive.
> >>
> >> Cheers,
> >>
> >> Scott
> >>
> >>
> >> > On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org>
> wrote:
> >> >
> >> > On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:
> >> >> It would be great if the clipboard would work on Windows for NetBeans
> >> 12.5
> >> >
> >> > Yes, although that would involve understanding what's broken.  Just
> >> > spent some time having a look on my Win 10 machine (which I don't
> >> > usually use for development), but so far can't replicate.
> >> >
> >> > However ...
> >> >
> >> > On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com>
> wrote:
> >> >> My netbeans.conf file contains
> >> >> ...
> >> >> -J-Dorg.netbeans.core.NbClipboard=-1
> >> >
> >> > I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST
> >> >
> >> > With that I do get a lot of output from the clipboard in the log.
> >> > Hopefully the logging if / when it fails may tell us something.
> >> >
> >> > Incidentally, your other log output about System clipboard not
> >> > available is I think because the Windows clipboard can only be opened
> >> > by one application at a time.  Not sure if it's related or not.
> >> >
> >> > Best wishes,
> >> >
> >> > Neil
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> >> For additional commands, e-mail: dev-help@netbeans.apache.org
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>
> >>
> >>
> >>
>

Re: Can we fix cut and paste before release?

Posted by Ernie Rael <er...@raelity.com>.
Speaking of logging options...

There's a plugin, https://plugins.netbeans.apache.org/catalogue/?id=40, 
that allows *dynamic* control of loggers in the /running/ NetBeans. Its 
wiki has an example, http://raelity.com/jlogman/Home.html#example, 
showing how to control logging for sub-trees of the logger hierarchy.

Changes can be saved and applied automatically at startup. Additionally, 
since the changes to logging are kept in the userdir, the changes 
survive a NB version updat/e //if/ the old userdir is used.

I just noticed that there is no export/import category specifically to 
save/restore logging configurations, might add that since with an NB 
major version update I'll have to touch the plugins page anyway.

-ernie

On 12/13/2021 2:57 PM, Scott Palmer wrote:
> Just had this happen again. This time I couldn’t copy something from a NB
> editor to paste elsewhere.  Sadly I had forgotten to add the login option
> below since updating to the 12.6 release.
>
>
> However after restarting the IDE with that logging option … and BEFORE
> doing any copy/paste operations I do see something interesting in the
> uigestures log, though I think it may be related to a different issue in
> the cupboard code:
>
> It just so happens that my system clipboard has the path to the NB user
> dir, as I cut it out of the About window so I could load the log into
> another editor.
>
> Being on Windows this path starts with “c:”
> Somewhere in the NbClipboard code (NbClipboard$GetContents line 429 ->
> access$300 line 50 -> logFlavors line 299) it is trying to interpret the
> string as a URL and is getting an exception claiming, “unknown protocol: c"
> Likely benign as far as my main clipboard issues are concerned, but since
> it ended up in the log I figured I would point it out.
>
> The log does however appear many many times, even though I haven’t yet done
> anything other than launch the IDE.
> 13000 lines in uigestures .. mostly due to 132 reports of “unknown
> protocol: c"
>
> I will try to get useful data for the failing cut/paste issues…
>
>
> Scott
>
>
> On Aug 6, 2021, at 11:27 AM, Geertjan Wielenga
> <ge...@googlemail.com.INVALID> wrote:
>
> will/won’t have.
>
> Start with a fresh userdir and a standard NetBeans.conf, just with
> -J-Dorg.netbeans.NbClipboard.level=FINEST.
>
> Then Neil can investigate since he nor I nor others wanting to help can
> reproduce this so far.
>
> Gj
>
> On Fri, 6 Aug 2021 at 17:24, Geertjan Wielenga <
> geertjan.wielenga@googlemail.com> wrote:
>
> Indeed, please test without settings that regular installs will have.
>
> Gj
>
> On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@gmail.com> wrote:
>
> Thanks,
>
> I’ve updated my netbeans.conf file to have
> -J-Dorg.netbeans.NbClipboard.level=FINEST as well as
> -J-Dnetbeans.slow.system.clipboard.hack=false
> Though I should probably test without that last property as well, as it
> isn’t what regular installs will have.
>
> I’m just doing whatever I can to avoid the frustration of a broken
> clipboard at this point though.  You can imagine how infuriating it is when
> something so basic just stops working when you need it.  Restarting the IDE
> so I can paste something is rather disruptive.
>
> Cheers,
>
> Scott
>
>
> On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org> wrote:
>
> On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:
>
> It would be great if the clipboard would work on Windows for NetBeans
>
> 12.5
>
>
> Yes, although that would involve understanding what's broken.  Just
> spent some time having a look on my Win 10 machine (which I don't
> usually use for development), but so far can't replicate.
>
> However ...
>
> On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com> wrote:
>
> My netbeans.conf file contains
> ...
> -J-Dorg.netbeans.core.NbClipboard=-1
>
>
> I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST
>
> With that I do get a lot of output from the clipboard in the log.
> Hopefully the logging if / when it fails may tell us something.
>
> Incidentally, your other log output about System clipboard not
> available is I think because the Windows clipboard can only be opened
> by one application at a time.  Not sure if it's related or not.
>
> Best wishes,
>
> Neil
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Can we fix cut and paste before release?

Posted by Tomas Poledny <sa...@gmail.com>.
Hi,
It started to be very common to me when we switched to MS Teams. Clipboard
is broken almost every hour. When we used Slack this happens once per few
days. I have no real data but just my feelings. Maybe it can help someone
to identify the issue.
Tomas

On Mon, Dec 13, 2021 at 11:58 PM Scott Palmer <sw...@gmail.com> wrote:

> Just had this happen again. This time I couldn’t copy something from a NB
> editor to paste elsewhere.  Sadly I had forgotten to add the login option
> below since updating to the 12.6 release.
>
>
> However after restarting the IDE with that logging option … and BEFORE
> doing any copy/paste operations I do see something interesting in the
> uigestures log, though I think it may be related to a different issue in
> the cupboard code:
>
> It just so happens that my system clipboard has the path to the NB user
> dir, as I cut it out of the About window so I could load the log into
> another editor.
>
> Being on Windows this path starts with “c:”
> Somewhere in the NbClipboard code (NbClipboard$GetContents line 429 ->
> access$300 line 50 -> logFlavors line 299) it is trying to interpret the
> string as a URL and is getting an exception claiming, “unknown protocol: c"
> Likely benign as far as my main clipboard issues are concerned, but since
> it ended up in the log I figured I would point it out.
>
> The log does however appear many many times, even though I haven’t yet done
> anything other than launch the IDE.
> 13000 lines in uigestures .. mostly due to 132 reports of “unknown
> protocol: c"
>
> I will try to get useful data for the failing cut/paste issues…
>
>
> Scott
>
>
> On Aug 6, 2021, at 11:27 AM, Geertjan Wielenga
> <ge...@googlemail.com.INVALID> wrote:
>
> will/won’t have.
>
> Start with a fresh userdir and a standard NetBeans.conf, just with
> -J-Dorg.netbeans.NbClipboard.level=FINEST.
>
> Then Neil can investigate since he nor I nor others wanting to help can
> reproduce this so far.
>
> Gj
>
> On Fri, 6 Aug 2021 at 17:24, Geertjan Wielenga <
> geertjan.wielenga@googlemail.com> wrote:
>
> Indeed, please test without settings that regular installs will have.
>
> Gj
>
> On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@gmail.com> wrote:
>
> Thanks,
>
> I’ve updated my netbeans.conf file to have
> -J-Dorg.netbeans.NbClipboard.level=FINEST as well as
> -J-Dnetbeans.slow.system.clipboard.hack=false
> Though I should probably test without that last property as well, as it
> isn’t what regular installs will have.
>
> I’m just doing whatever I can to avoid the frustration of a broken
> clipboard at this point though.  You can imagine how infuriating it is when
> something so basic just stops working when you need it.  Restarting the IDE
> so I can paste something is rather disruptive.
>
> Cheers,
>
> Scott
>
>
> On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org> wrote:
>
> On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:
>
> It would be great if the clipboard would work on Windows for NetBeans
>
> 12.5
>
>
> Yes, although that would involve understanding what's broken.  Just
> spent some time having a look on my Win 10 machine (which I don't
> usually use for development), but so far can't replicate.
>
> However ...
>
> On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com> wrote:
>
> My netbeans.conf file contains
> ...
> -J-Dorg.netbeans.core.NbClipboard=-1
>
>
> I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST
>
> With that I do get a lot of output from the clipboard in the log.
> Hopefully the logging if / when it fails may tell us something.
>
> Incidentally, your other log output about System clipboard not
> available is I think because the Windows clipboard can only be opened
> by one application at a time.  Not sure if it's related or not.
>
> Best wishes,
>
> Neil
>

Re: Can we fix cut and paste before release?

Posted by Mark Eggers <it...@yahoo.com.INVALID>.
Oddly enough, I just spent 1/2 day copying and pasting from Chrome's 
console to NetBeans (12.4, JDK 11.0.12, Windows 10 Professional) with no 
issues.

I also pasted from NetBeans to jEdit 5.6.0 with no issues.

My project is a Maven Web project, and I was copying and pasting from 
JSP fragments and JSP server pages (working on Content-Security-Policy 
issues).

I don't have a lot of other stuff going on as far as Slack, Zoom, WebEx, 
etc. It's just me, Chrome, the IDE, the editor, and occasionally some 
mail in Thunderbird.

Not terribly helpful I suppose, but it might point to some competition 
between various programs and the clipboard?

. . . not my helpful two cents
/mde/

On 12/13/2021 2:57 PM, Scott Palmer wrote:
> Just had this happen again. This time I couldn’t copy something from a NB
> editor to paste elsewhere.  Sadly I had forgotten to add the login option
> below since updating to the 12.6 release.
> 
> 
> However after restarting the IDE with that logging option … and BEFORE
> doing any copy/paste operations I do see something interesting in the
> uigestures log, though I think it may be related to a different issue in
> the cupboard code:
> 
> It just so happens that my system clipboard has the path to the NB user
> dir, as I cut it out of the About window so I could load the log into
> another editor.
> 
> Being on Windows this path starts with “c:”
> Somewhere in the NbClipboard code (NbClipboard$GetContents line 429 ->
> access$300 line 50 -> logFlavors line 299) it is trying to interpret the
> string as a URL and is getting an exception claiming, “unknown protocol: c"
> Likely benign as far as my main clipboard issues are concerned, but since
> it ended up in the log I figured I would point it out.
> 
> The log does however appear many many times, even though I haven’t yet done
> anything other than launch the IDE.
> 13000 lines in uigestures .. mostly due to 132 reports of “unknown
> protocol: c"
> 
> I will try to get useful data for the failing cut/paste issues…
> 
> 
> Scott
> 
> 
> On Aug 6, 2021, at 11:27 AM, Geertjan Wielenga
> <ge...@googlemail.com.INVALID> wrote:
> 
> will/won’t have.
> 
> Start with a fresh userdir and a standard NetBeans.conf, just with
> -J-Dorg.netbeans.NbClipboard.level=FINEST.
> 
> Then Neil can investigate since he nor I nor others wanting to help can
> reproduce this so far.
> 
> Gj
> 
> On Fri, 6 Aug 2021 at 17:24, Geertjan Wielenga <
> geertjan.wielenga@googlemail.com> wrote:
> 
> Indeed, please test without settings that regular installs will have.
> 
> Gj
> 
> On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@gmail.com> wrote:
> 
> Thanks,
> 
> I’ve updated my netbeans.conf file to have
> -J-Dorg.netbeans.NbClipboard.level=FINEST as well as
> -J-Dnetbeans.slow.system.clipboard.hack=false
> Though I should probably test without that last property as well, as it
> isn’t what regular installs will have.
> 
> I’m just doing whatever I can to avoid the frustration of a broken
> clipboard at this point though.  You can imagine how infuriating it is when
> something so basic just stops working when you need it.  Restarting the IDE
> so I can paste something is rather disruptive.
> 
> Cheers,
> 
> Scott
> 
> 
> On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org> wrote:
> 
> On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:
> 
> It would be great if the clipboard would work on Windows for NetBeans
> 
> 12.5
> 
> 
> Yes, although that would involve understanding what's broken.  Just
> spent some time having a look on my Win 10 machine (which I don't
> usually use for development), but so far can't replicate.
> 
> However ...
> 
> On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com> wrote:
> 
> My netbeans.conf file contains
> ...
> -J-Dorg.netbeans.core.NbClipboard=-1
> 
> 
> I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST
> 
> With that I do get a lot of output from the clipboard in the log.
> Hopefully the logging if / when it fails may tell us something.
> 
> Incidentally, your other log output about System clipboard not
> available is I think because the Windows clipboard can only be opened
> by one application at a time.  Not sure if it's related or not.
> 
> Best wishes,
> 
> Neil
> 


Re: Can we fix cut and paste before release?

Posted by Eric Bresie <eb...@gmail.com>.
On Mon, Dec 13, 2021 at 4:58 PM Scott Palmer <sw...@gmail.com> wrote:

> Just had this happen again. This time I couldn’t copy something from a NB
> editor to paste elsewhere.  Sadly I had forgotten to add the login option
> below since updating to the 12.6 release.
>
>
> However after restarting the IDE with that logging option … and BEFORE
> doing any copy/paste operations I do see something interesting in the
> uigestures log, though I think it may be related to a different issue in
> the cupboard code:
>
> It just so happens that my system clipboard has the path to the NB user
> dir, as I cut it out of the About window so I could load the log into
> another editor.
>
> Being on Windows this path starts with “c:”
> Somewhere in the NbClipboard code (NbClipboard$GetContents line 429 ->
> access$300 line 50 -> logFlavors line 299) it is trying to interpret the
> string as a URL and is getting an exception claiming, “unknown protocol: c"
> Likely benign as far as my main clipboard issues are concerned, but since
> it ended up in the log I figured I would point it out.
>
> when you need it.  Restarting the IDE
> so I can paste something is rather disruptive.


I seem to recall for URL (1) there is usually a protocol prefix with the
files being protocol “file:///” followed by the rest of the paths.  Is it
possible this is not specified quit right?

Does some additional prefix need to be added in this context?

Or maybe some URI / URL conversion (2) taken into account around this
context?

(1)
https://stackoverflow.com/questions/8406025/local-file-protocol-for-java-net-url
(2)
https://www.baeldung.com/java-url-vs-uri
-- 
Eric Bresie
ebresie@gmail.com

Re: Can we fix cut and paste before release?

Posted by Scott Palmer <sw...@gmail.com>.
Just had this happen again. This time I couldn’t copy something from a NB
editor to paste elsewhere.  Sadly I had forgotten to add the login option
below since updating to the 12.6 release.


However after restarting the IDE with that logging option … and BEFORE
doing any copy/paste operations I do see something interesting in the
uigestures log, though I think it may be related to a different issue in
the cupboard code:

It just so happens that my system clipboard has the path to the NB user
dir, as I cut it out of the About window so I could load the log into
another editor.

Being on Windows this path starts with “c:”
Somewhere in the NbClipboard code (NbClipboard$GetContents line 429 ->
access$300 line 50 -> logFlavors line 299) it is trying to interpret the
string as a URL and is getting an exception claiming, “unknown protocol: c"
Likely benign as far as my main clipboard issues are concerned, but since
it ended up in the log I figured I would point it out.

The log does however appear many many times, even though I haven’t yet done
anything other than launch the IDE.
13000 lines in uigestures .. mostly due to 132 reports of “unknown
protocol: c"

I will try to get useful data for the failing cut/paste issues…


Scott


On Aug 6, 2021, at 11:27 AM, Geertjan Wielenga
<ge...@googlemail.com.INVALID> wrote:

will/won’t have.

Start with a fresh userdir and a standard NetBeans.conf, just with
-J-Dorg.netbeans.NbClipboard.level=FINEST.

Then Neil can investigate since he nor I nor others wanting to help can
reproduce this so far.

Gj

On Fri, 6 Aug 2021 at 17:24, Geertjan Wielenga <
geertjan.wielenga@googlemail.com> wrote:

Indeed, please test without settings that regular installs will have.

Gj

On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@gmail.com> wrote:

Thanks,

I’ve updated my netbeans.conf file to have
-J-Dorg.netbeans.NbClipboard.level=FINEST as well as
-J-Dnetbeans.slow.system.clipboard.hack=false
Though I should probably test without that last property as well, as it
isn’t what regular installs will have.

I’m just doing whatever I can to avoid the frustration of a broken
clipboard at this point though.  You can imagine how infuriating it is when
something so basic just stops working when you need it.  Restarting the IDE
so I can paste something is rather disruptive.

Cheers,

Scott


On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org> wrote:

On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:

It would be great if the clipboard would work on Windows for NetBeans

12.5


Yes, although that would involve understanding what's broken.  Just
spent some time having a look on my Win 10 machine (which I don't
usually use for development), but so far can't replicate.

However ...

On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com> wrote:

My netbeans.conf file contains
...
-J-Dorg.netbeans.core.NbClipboard=-1


I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST

With that I do get a lot of output from the clipboard in the log.
Hopefully the logging if / when it fails may tell us something.

Incidentally, your other log output about System clipboard not
available is I think because the Windows clipboard can only be opened
by one application at a time.  Not sure if it's related or not.

Best wishes,

Neil

Re: 12.4 Can we fix cut and paste before release?

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
will/won’t have.

Start with a fresh userdir and a standard NetBeans.conf, just with
-J-Dorg.netbeans.NbClipboard.level=FINEST.

Then Neil can investigate since he nor I nor others wanting to help can
reproduce this so far.

Gj

On Fri, 6 Aug 2021 at 17:24, Geertjan Wielenga <
geertjan.wielenga@googlemail.com> wrote:

> Indeed, please test without settings that regular installs will have.
>
> Gj
>
> On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@gmail.com> wrote:
>
>> Thanks,
>>
>> I’ve updated my netbeans.conf file to have
>> -J-Dorg.netbeans.NbClipboard.level=FINEST as well as
>> -J-Dnetbeans.slow.system.clipboard.hack=false
>> Though I should probably test without that last property as well, as it
>> isn’t what regular installs will have.
>>
>> I’m just doing whatever I can to avoid the frustration of a broken
>> clipboard at this point though.  You can imagine how infuriating it is when
>> something so basic just stops working when you need it.  Restarting the IDE
>> so I can paste something is rather disruptive.
>>
>> Cheers,
>>
>> Scott
>>
>>
>> > On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org> wrote:
>> >
>> > On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:
>> >> It would be great if the clipboard would work on Windows for NetBeans
>> 12.5
>> >
>> > Yes, although that would involve understanding what's broken.  Just
>> > spent some time having a look on my Win 10 machine (which I don't
>> > usually use for development), but so far can't replicate.
>> >
>> > However ...
>> >
>> > On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com> wrote:
>> >> My netbeans.conf file contains
>> >> ...
>> >> -J-Dorg.netbeans.core.NbClipboard=-1
>> >
>> > I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST
>> >
>> > With that I do get a lot of output from the clipboard in the log.
>> > Hopefully the logging if / when it fails may tell us something.
>> >
>> > Incidentally, your other log output about System clipboard not
>> > available is I think because the Windows clipboard can only be opened
>> > by one application at a time.  Not sure if it's related or not.
>> >
>> > Best wishes,
>> >
>> > Neil
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: dev-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>

Re: 12.4 Can we fix cut and paste before release?

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Indeed, please test without settings that regular installs will have.

Gj

On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@gmail.com> wrote:

> Thanks,
>
> I’ve updated my netbeans.conf file to have
> -J-Dorg.netbeans.NbClipboard.level=FINEST as well as
> -J-Dnetbeans.slow.system.clipboard.hack=false
> Though I should probably test without that last property as well, as it
> isn’t what regular installs will have.
>
> I’m just doing whatever I can to avoid the frustration of a broken
> clipboard at this point though.  You can imagine how infuriating it is when
> something so basic just stops working when you need it.  Restarting the IDE
> so I can paste something is rather disruptive.
>
> Cheers,
>
> Scott
>
>
> > On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org> wrote:
> >
> > On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:
> >> It would be great if the clipboard would work on Windows for NetBeans
> 12.5
> >
> > Yes, although that would involve understanding what's broken.  Just
> > spent some time having a look on my Win 10 machine (which I don't
> > usually use for development), but so far can't replicate.
> >
> > However ...
> >
> > On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com> wrote:
> >> My netbeans.conf file contains
> >> ...
> >> -J-Dorg.netbeans.core.NbClipboard=-1
> >
> > I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST
> >
> > With that I do get a lot of output from the clipboard in the log.
> > Hopefully the logging if / when it fails may tell us something.
> >
> > Incidentally, your other log output about System clipboard not
> > available is I think because the Windows clipboard can only be opened
> > by one application at a time.  Not sure if it's related or not.
> >
> > Best wishes,
> >
> > Neil
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: 12.4 Can we fix cut and paste before release?

Posted by Scott Palmer <sw...@gmail.com>.
Thanks,  

I’ve updated my netbeans.conf file to have -J-Dorg.netbeans.NbClipboard.level=FINEST as well as -J-Dnetbeans.slow.system.clipboard.hack=false
Though I should probably test without that last property as well, as it isn’t what regular installs will have.

I’m just doing whatever I can to avoid the frustration of a broken clipboard at this point though.  You can imagine how infuriating it is when something so basic just stops working when you need it.  Restarting the IDE so I can paste something is rather disruptive.

Cheers,

Scott


> On Aug 6, 2021, at 9:54 AM, Neil C Smith <ne...@apache.org> wrote:
> 
> On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:
>> It would be great if the clipboard would work on Windows for NetBeans 12.5
> 
> Yes, although that would involve understanding what's broken.  Just
> spent some time having a look on my Win 10 machine (which I don't
> usually use for development), but so far can't replicate.
> 
> However ...
> 
> On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com> wrote:
>> My netbeans.conf file contains
>> ...
>> -J-Dorg.netbeans.core.NbClipboard=-1
> 
> I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST
> 
> With that I do get a lot of output from the clipboard in the log.
> Hopefully the logging if / when it fails may tell us something.
> 
> Incidentally, your other log output about System clipboard not
> available is I think because the Windows clipboard can only be opened
> by one application at a time.  Not sure if it's related or not.
> 
> Best wishes,
> 
> Neil


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: 12.4 Can we fix cut and paste before release?

Posted by Neil C Smith <ne...@apache.org>.
On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@gmail.com> wrote:
> It would be great if the clipboard would work on Windows for NetBeans 12.5

Yes, although that would involve understanding what's broken.  Just
spent some time having a look on my Win 10 machine (which I don't
usually use for development), but so far can't replicate.

However ...

On Fri, 14 May 2021 at 23:45, Scott Palmer <sw...@gmail.com> wrote:
> My netbeans.conf file contains
> ...
> -J-Dorg.netbeans.core.NbClipboard=-1

I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST

With that I do get a lot of output from the clipboard in the log.
Hopefully the logging if / when it fails may tell us something.

Incidentally, your other log output about System clipboard not
available is I think because the Windows clipboard can only be opened
by one application at a time.  Not sure if it's related or not.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: 12.4 Can we fix cut and paste before release?

Posted by Scott Palmer <sw...@gmail.com>.
It would be great if the clipboard would work on Windows for NetBeans 12.5

Scott

> On Jun 10, 2021, at 1:28 AM, Scott Palmer <sw...@gmail.com> wrote:
> 
> That seems to be related to the old Java Applets which run in a sandbox.  It would not account for why Netbeans, which doesn’t run in a sandbox, starts out with Cut & Paste that works without editing the default java policy until it suddenly doesn’t.
> 
> Scott
> 
>> On Jun 6, 2021, at 4:49 PM, Eric Bresie <eb...@gmail.com> wrote:
>> 
>> Don’t suppose something like this would help
>> 
>> http://www.shodor.org/interactivate/resources/InstructionsCopyPaste
>> 
>> 
>>> On Fri, May 14, 2021 at 5:45 PM Scott Palmer <sw...@gmail.com> wrote:
>>> 
>>> So even with the  -J-Dnetbeans.slow.system.clipboard.hack=false setting in
>>> netbeans.conf it still fails.
>>> :-(
>>> NB 12.4-rc3
>>> JDK 16 (Zulu 16.0.1)
>>> Win 10
>>> 
>>> My netbeans.conf file contains
>>> -J-Dnetbeans.slow.system.clipboard.hack=false
>>> -J-Dorg.netbeans.core.NbClipboard=-1
>>> 
>>> My attempts to paste from the system clipboard instead are pasting the last
>>> thing copied inside a NetBeans editor.
>>> There are no events added to the messages log when I paste.
>>> uigestures just shows:
>>> <record>
>>> <date>2021-05-14T18:41:49</date>
>>> <millis>1621032109778</millis>
>>> <sequence>2512</sequence>
>>> <logger>org.netbeans.ui.actions.editor</logger>
>>> <level>500</level>
>>> <thread>26</thread>
>>> <message>UI_ACTION_EDITOR</message>
>>> <key>UI_ACTION_EDITOR</key>
>>> <catalog>&lt;null&gt;</catalog>
>>> 
>>> 
>>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1621032109777,modifiers=Ctrl]
>>> on
>>> 
>>> org.openide.text.QuietEditorPane[,0,0,1657x9742,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@3890976b
>>> 
>>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.xml.text.syntax.XMLKit@2f695bbb
>>> ,typeHandlers=]</param>
>>> 
>>> 
>>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1621032109777,modifiers=Ctrl]
>>> on
>>> 
>>> org.openide.text.QuietEditorPane[,0,0,1657x9742,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@3890976b
>>> 
>>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.xml.text.syntax.XMLKit@2f695bbb
>>> ,typeHandlers=]</param>
>>> 
>>> 
>>> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
>>> <param>org.netbeans.editor.BaseKit$PasteAction@6479cfd5</param>
>>> <param>paste-from-clipboard</param>
>>> </record>
>>> 
>>> 
>>> Regards,
>>> 
>>> Scott
>>> 
>>> 
>>>> On Wed, May 12, 2021 at 4:25 PM Scott Palmer <sw...@gmail.com> wrote:
>>>> 
>>>> Saw this in the logs.  i'm running with
>>>> -J-Dnetbeans.slow.system.clipboard.hack=false
>>>> 
>>>> INFO [org.netbeans.NbClipboard]: System clipboard not available.
>>>> java.lang.IllegalStateException: cannot open system clipboard
>>>>   at java.desktop/sun.awt.windows.WClipboard.openClipboard(Native
>>> Method)
>>>> 
>>>>   at
>>> java.desktop/sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:77)
>>>> 
>>>>   at
>>> java.desktop/sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:138)
>>>> [catch] at org.netbeans.NbClipboard.getContents(NbClipboard.java:206)
>>>> 
>>>>   at
>>> org.netbeans.modules.editor.impl.actions.clipboardhistory.ClipboardHistory.clipboardChanged(ClipboardHistory.java:110)
>>>> 
>>>>   at
>>> org.openide.util.datatransfer.ExClipboard.fireClipboardChange(ExClipboard.java:72)
>>>>   at org.netbeans.NbClipboard.fireChange(NbClipboard.java:326)
>>>>   at org.netbeans.NbClipboard.flavorsChanged(NbClipboard.java:318)
>>>> 
>>>>   at
>>> java.desktop/sun.awt.datatransfer.SunClipboard.lambda$checkChange$2(SunClipboard.java:435)
>>>> 
>>>>   at
>>> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
>>>> 
>>>>   at
>>> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
>>>>   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
>>>>   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
>>>> 
>>>>   at
>>> java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
>>>> 
>>>>   at
>>> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
>>>>   at
>>> java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
>>>> 
>>>>   at
>>> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
>>>> 
>>>>   at
>>> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
>>>> 
>>>>   at
>>> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
>>>> 
>>>>   at
>>> java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
>>>> 
>>>>   at
>>> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
>>>> 
>>>>   at
>>> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>>>> 
>>>>   at
>>> java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
>>>> 
>>>> I don't know why there would be an issue opening the system clipboard.
>>>> Cut and paste is working between apps at the moment.
>>>> 
>>>> Scott
>>>> 
>>>> On Wed, May 12, 2021 at 11:29 AM Scott Palmer <sw...@gmail.com>
>>> wrote:
>>>> 
>>>>> Nevermind my request for a disable flag, sorry I'm tired.. forgot the
>>> old
>>>>> bug database mentioned
>>>>> -J-Dnetbeans.slow.system.clipboard.hack=false
>>>>> 
>>>>> trying that...
>>>>> 
>>>>> On Wed, May 12, 2021 at 11:22 AM Scott Palmer <sw...@gmail.com>
>>> wrote:
>>>>> 
>>>>>> If there is something more I can do please let me know...  I've tried
>>> to
>>>>>> get any relevant logs (I can't find anything interesting).
>>>>>> This basic feature not working is driving me mad.  Can we perhaps
>>>>>> just get a flag to disable any old workarounds and just always use the
>>>>>> system clipboard?
>>>>>> 
>>>>>> Scott
>>>>>> 
>>>>>> On Thu, Apr 29, 2021 at 3:47 PM Scott Palmer <sw...@gmail.com>
>>> wrote:
>>>>>> 
>>>>>>> So I've set this in my netbeans.conf file, but I don't notice anything
>>>>>>> that stands out in the logging.  Which file would it be in
>>> messages.log or
>>>>>>> uigestures?
>>>>>>> There is nothing relevant in messages.log and uigestures just shows
>>>>>>> that a paste was attempted - even though the wrong content was pasted
>>> (last
>>>>>>> thing copied from within Netbeans rather than what is on the system
>>>>>>> clipboard).
>>>>>>> 
>>>>>>> This is the record form uigestures:
>>>>>>> 
>>>>>>> <record>
>>>>>>> <date>2021-04-29T11:30:43</date>
>>>>>>> <millis>1619710243434</millis>
>>>>>>> <sequence>1644</sequence>
>>>>>>> <logger>org.netbeans.ui.actions.editor</logger>
>>>>>>> <level>500</level>
>>>>>>> <thread>26</thread>
>>>>>>> <message>UI_ACTION_EDITOR</message>
>>>>>>> <key>UI_ACTION_EDITOR</key>
>>>>>>> <catalog>&lt;null&gt;</catalog>
>>>>>>> 
>>>>>>> 
>>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>>>>>>> on
>>>>>>> 
>>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>>>>>>> 
>>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>>>>>>> ,typeHandlers=]</param>
>>>>>>> 
>>>>>>> 
>>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>>>>>>> on
>>>>>>> 
>>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>>>>>>> 
>>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>>>>>>> ,typeHandlers=]</param>
>>>>>>> 
>>>>>>> 
>>> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
>>>>>>> <param>org.netbeans.editor.BaseKit$PasteAction@70200aee</param>
>>>>>>> <param>paste-from-clipboard</param>
>>>>>>> </record>
>>>>>>> 
>>>>>>> Regards,
>>>>>>> 
>>>>>>> Scott
>>>>>>> 
>>>>>>> On Thu, Apr 8, 2021 at 4:20 PM Geertjan Wielenga
>>>>>>> <ge...@googlemail.com.invalid> wrote:
>>>>>>> 
>>>>>>>> As stated there: “ Please run with logging enabled
>>>>>>>> (-J-Dorg.netbeans.core.NbClipboard=-1) and attach the
>>>>>>>> 
>>>>>>>> part of log that records what happened during the broken situation.”
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Thanks,
>>>>>>>> 
>>>>>>>> Gj
>>>>>>>> 
>>>>>>>> On Thu, 8 Apr 2021 at 22:12, Scott Palmer <sw...@gmail.com>
>>> wrote:
>>>>>>>> 
>>>>>>>>> The discussion on this old bug seems to be most relevant:
>>>>>>>>> 
>>>>>>>>> https://bz.apache.org/netbeans//show_bug.cgi?id=41098
>>>>>>>>> 
>>>>>>>>> Over 16 years ago this was apparently a JDK issue. (People were
>>>>>>>> using JDK
>>>>>>>>> 1.4 at the time.)
>>>>>>>>> See  Comment 21 <
>>>>>>>> https://bz.apache.org/netbeans//show_bug.cgi?id=41098#c21
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> I suspect the workaround (which never really worked properly) isn’t
>>>>>>>>> required anymore.
>>>>>>>>> 
>>>>>>>>> Scott
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> On Apr 8, 2021, at 4:06 PM, Scott Palmer <sw...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>>> 
>>>>>>>>>> Both directions to/from a NetBeans editor to/from something
>>>>>>>> outside.
>>>>>>>>> Not consistent, but frequent enough - multiple times a week.
>>>>>>>>>> 
>>>>>>>>>> It seems when this occurs it is like the NetBeans editor has a
>>>>>>>> private
>>>>>>>>> clipboard.  Pasting outside NetBEans pastes the last thing copied
>>>>>>>> outside
>>>>>>>>> of NetBeans.  Pasting within a NetBeans editor pastes the last
>>> thing
>>>>>>>> copied
>>>>>>>>> from a NetBeans editor.
>>>>>>>>>> 
>>>>>>>>>> Very frustrating when you are trying to copy to an email or a
>>>>>>>> remote
>>>>>>>>> desktop session, or between stack overflow etc...
>>>>>>>>>> 
>>>>>>>>>> Scott
>>>>>>>>>> 
>>>>>>>>>>> On Apr 8, 2021, at 3:59 PM, Geertjan Wielenga
>>>>>>>>> <geertjan.wielenga@googlemail.com.INVALID <mailto:
>>>>>>>>> geertjan.wielenga@googlemail.com.INVALID>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>> It’s 100% about copying text from any NetBeans editor to
>>> somewhere
>>>>>>>>> outside
>>>>>>>>>>> NetBeans? Or also the reverse? Consistently or sporadically?
>>>>>>>>>>> 
>>>>>>>>>>> Gj
>>>>>>>>>>> 
>>>>>>>>>>> On Thu, 8 Apr 2021 at 21:57, Scott Palmer <swpalmer@gmail.com
>>>>>>>> <mailto:
>>>>>>>>> swpalmer@gmail.com>> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> Windows 10
>>>>>>>>>>>> JDK 8 through 16
>>>>>>>>>>>> 
>>>>>>>>>>>> See prior discussion here:
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>>>>>>>> <
>>>>>>>>> 
>>>>>>>> 
>>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> It seems many of us are just used to Copy and Paste not working
>>>>>>>>> properly
>>>>>>>>>>>> and we have various strategies to work around it.  It shouldn’t
>>>>>>>> be
>>>>>>>>> that way.
>>>>>>>>>>>> 
>>>>>>>>>>>> Scott
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>>> On Apr 7, 2021, at 1:15 PM, Geertjan Wielenga
>>>>>>>>>>>> <ge...@googlemail.com.INVALID> wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Operating system, JDK version, please...
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Gj
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer <
>>> swpalmer@gmail.com
>>>>>>>>> <ma...@gmail.com> <mailto:
>>>>>>>>>>>> swpalmer@gmail.com>> wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> I know it probably is the same as before, but today it seems
>>>>>>>> worse in
>>>>>>>>>>>> 12.4
>>>>>>>>>>>>>> beta 2 than it was in 12.3.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Cut and paste is such basic functionality that when it
>>> doesn’t
>>>>>>>> work
>>>>>>>>> it
>>>>>>>>>>>> is
>>>>>>>>>>>>>> a major source of frustration.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Today I have been fighting cut and paste not working with
>>>>>>>> NetBeans
>>>>>>>>> 12.4
>>>>>>>>>>>>>> beta 2 for a few hours.  Jumping through hoops to cut some
>>>>>>>> text out
>>>>>>>>> of a
>>>>>>>>>>>>>> NetBeans editor and paste it into something else is not how I
>>>>>>>> wanted
>>>>>>>>> to
>>>>>>>>>>>>>> spend my morning.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> This was discussed briefly in early February (see thread
>>>>>>>> “System
>>>>>>>>>>>> Clipboard
>>>>>>>>>>>>>> Issues”)
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> It is has been reported here
>>>>>>>>>>>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>>>>>>>> https://issues.apache.org/jira/browse/NETBEANS-2159> <
>>>>>>>>>>>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>>>>>>>>>>> https://issues.apache.org/jira/browse/NETBEANS-2159>>
>>>>>>>>>>>>>> Though that description is perhaps incomplete.  Both copying
>>>>>>>> from
>>>>>>>>>>>> NetBeans
>>>>>>>>>>>>>> and pasting to NetBeans are affected.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> If you are doing cut and paste entirely within NetBeans you
>>>>>>>> may not
>>>>>>>>> see
>>>>>>>>>>>>>> the issue. It is only when you want to cut and paste between
>>>>>>>> NetBeans
>>>>>>>>>>>> and
>>>>>>>>>>>>>> an external program that it fails.  And it fails very
>>>>>>>> frequently in
>>>>>>>>> that
>>>>>>>>>>>>>> case.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> The sense I got was that NetBeans was trying to work around a
>>>>>>>> bug in
>>>>>>>>> the
>>>>>>>>>>>>>> JRE by using it’s own private clipboard.  I suspect the
>>>>>>>> original JRE
>>>>>>>>>>>> issue
>>>>>>>>>>>>>> is long gone and NetBeans is just creating more problems with
>>>>>>>> an
>>>>>>>>> awkward
>>>>>>>>>>>>>> workaround for a problem that isn’t there.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Scott
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>> 
>> -- 
>> Eric Bresie
>> ebresie@gmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: 12.4 Can we fix cut and paste before release?

Posted by Scott Palmer <sw...@gmail.com>.
That seems to be related to the old Java Applets which run in a sandbox.  It would not account for why Netbeans, which doesn’t run in a sandbox, starts out with Cut & Paste that works without editing the default java policy until it suddenly doesn’t.

Scott

> On Jun 6, 2021, at 4:49 PM, Eric Bresie <eb...@gmail.com> wrote:
> 
> Don’t suppose something like this would help
> 
> http://www.shodor.org/interactivate/resources/InstructionsCopyPaste
> 
> 
>> On Fri, May 14, 2021 at 5:45 PM Scott Palmer <sw...@gmail.com> wrote:
>> 
>> So even with the  -J-Dnetbeans.slow.system.clipboard.hack=false setting in
>> netbeans.conf it still fails.
>> :-(
>> NB 12.4-rc3
>> JDK 16 (Zulu 16.0.1)
>> Win 10
>> 
>> My netbeans.conf file contains
>> -J-Dnetbeans.slow.system.clipboard.hack=false
>> -J-Dorg.netbeans.core.NbClipboard=-1
>> 
>> My attempts to paste from the system clipboard instead are pasting the last
>> thing copied inside a NetBeans editor.
>> There are no events added to the messages log when I paste.
>> uigestures just shows:
>> <record>
>>  <date>2021-05-14T18:41:49</date>
>>  <millis>1621032109778</millis>
>>  <sequence>2512</sequence>
>>  <logger>org.netbeans.ui.actions.editor</logger>
>>  <level>500</level>
>>  <thread>26</thread>
>>  <message>UI_ACTION_EDITOR</message>
>>  <key>UI_ACTION_EDITOR</key>
>>  <catalog>&lt;null&gt;</catalog>
>> 
>> 
>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1621032109777,modifiers=Ctrl]
>> on
>> 
>> org.openide.text.QuietEditorPane[,0,0,1657x9742,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@3890976b
>> 
>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.xml.text.syntax.XMLKit@2f695bbb
>> ,typeHandlers=]</param>
>> 
>> 
>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1621032109777,modifiers=Ctrl]
>> on
>> 
>> org.openide.text.QuietEditorPane[,0,0,1657x9742,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@3890976b
>> 
>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.xml.text.syntax.XMLKit@2f695bbb
>> ,typeHandlers=]</param>
>> 
>> 
>> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
>>  <param>org.netbeans.editor.BaseKit$PasteAction@6479cfd5</param>
>>  <param>paste-from-clipboard</param>
>> </record>
>> 
>> 
>> Regards,
>> 
>> Scott
>> 
>> 
>>> On Wed, May 12, 2021 at 4:25 PM Scott Palmer <sw...@gmail.com> wrote:
>>> 
>>> Saw this in the logs.  i'm running with
>>> -J-Dnetbeans.slow.system.clipboard.hack=false
>>> 
>>> INFO [org.netbeans.NbClipboard]: System clipboard not available.
>>> java.lang.IllegalStateException: cannot open system clipboard
>>>    at java.desktop/sun.awt.windows.WClipboard.openClipboard(Native
>> Method)
>>> 
>>>    at
>> java.desktop/sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:77)
>>> 
>>>    at
>> java.desktop/sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:138)
>>> [catch] at org.netbeans.NbClipboard.getContents(NbClipboard.java:206)
>>> 
>>>    at
>> org.netbeans.modules.editor.impl.actions.clipboardhistory.ClipboardHistory.clipboardChanged(ClipboardHistory.java:110)
>>> 
>>>    at
>> org.openide.util.datatransfer.ExClipboard.fireClipboardChange(ExClipboard.java:72)
>>>    at org.netbeans.NbClipboard.fireChange(NbClipboard.java:326)
>>>    at org.netbeans.NbClipboard.flavorsChanged(NbClipboard.java:318)
>>> 
>>>    at
>> java.desktop/sun.awt.datatransfer.SunClipboard.lambda$checkChange$2(SunClipboard.java:435)
>>> 
>>>    at
>> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
>>> 
>>>    at
>> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
>>>    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
>>>    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
>>> 
>>>    at
>> java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
>>> 
>>>    at
>> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
>>>    at
>> java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
>>> 
>>>    at
>> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
>>> 
>>>    at
>> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
>>> 
>>>    at
>> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
>>> 
>>>    at
>> java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
>>> 
>>>    at
>> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
>>> 
>>>    at
>> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>>> 
>>>    at
>> java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
>>> 
>>> I don't know why there would be an issue opening the system clipboard.
>>> Cut and paste is working between apps at the moment.
>>> 
>>> Scott
>>> 
>>> On Wed, May 12, 2021 at 11:29 AM Scott Palmer <sw...@gmail.com>
>> wrote:
>>> 
>>>> Nevermind my request for a disable flag, sorry I'm tired.. forgot the
>> old
>>>> bug database mentioned
>>>> -J-Dnetbeans.slow.system.clipboard.hack=false
>>>> 
>>>> trying that...
>>>> 
>>>> On Wed, May 12, 2021 at 11:22 AM Scott Palmer <sw...@gmail.com>
>> wrote:
>>>> 
>>>>> If there is something more I can do please let me know...  I've tried
>> to
>>>>> get any relevant logs (I can't find anything interesting).
>>>>> This basic feature not working is driving me mad.  Can we perhaps
>>>>> just get a flag to disable any old workarounds and just always use the
>>>>> system clipboard?
>>>>> 
>>>>> Scott
>>>>> 
>>>>> On Thu, Apr 29, 2021 at 3:47 PM Scott Palmer <sw...@gmail.com>
>> wrote:
>>>>> 
>>>>>> So I've set this in my netbeans.conf file, but I don't notice anything
>>>>>> that stands out in the logging.  Which file would it be in
>> messages.log or
>>>>>> uigestures?
>>>>>> There is nothing relevant in messages.log and uigestures just shows
>>>>>> that a paste was attempted - even though the wrong content was pasted
>> (last
>>>>>> thing copied from within Netbeans rather than what is on the system
>>>>>> clipboard).
>>>>>> 
>>>>>> This is the record form uigestures:
>>>>>> 
>>>>>> <record>
>>>>>>  <date>2021-04-29T11:30:43</date>
>>>>>>  <millis>1619710243434</millis>
>>>>>>  <sequence>1644</sequence>
>>>>>>  <logger>org.netbeans.ui.actions.editor</logger>
>>>>>>  <level>500</level>
>>>>>>  <thread>26</thread>
>>>>>>  <message>UI_ACTION_EDITOR</message>
>>>>>>  <key>UI_ACTION_EDITOR</key>
>>>>>>  <catalog>&lt;null&gt;</catalog>
>>>>>> 
>>>>>> 
>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>>>>>> on
>>>>>> 
>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>>>>>> 
>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>>>>>> ,typeHandlers=]</param>
>>>>>> 
>>>>>> 
>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>>>>>> on
>>>>>> 
>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>>>>>> 
>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>>>>>> ,typeHandlers=]</param>
>>>>>> 
>>>>>> 
>> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
>>>>>>  <param>org.netbeans.editor.BaseKit$PasteAction@70200aee</param>
>>>>>>  <param>paste-from-clipboard</param>
>>>>>> </record>
>>>>>> 
>>>>>> Regards,
>>>>>> 
>>>>>> Scott
>>>>>> 
>>>>>> On Thu, Apr 8, 2021 at 4:20 PM Geertjan Wielenga
>>>>>> <ge...@googlemail.com.invalid> wrote:
>>>>>> 
>>>>>>> As stated there: “ Please run with logging enabled
>>>>>>> (-J-Dorg.netbeans.core.NbClipboard=-1) and attach the
>>>>>>> 
>>>>>>> part of log that records what happened during the broken situation.”
>>>>>>> 
>>>>>>> 
>>>>>>> Thanks,
>>>>>>> 
>>>>>>> Gj
>>>>>>> 
>>>>>>> On Thu, 8 Apr 2021 at 22:12, Scott Palmer <sw...@gmail.com>
>> wrote:
>>>>>>> 
>>>>>>>> The discussion on this old bug seems to be most relevant:
>>>>>>>> 
>>>>>>>> https://bz.apache.org/netbeans//show_bug.cgi?id=41098
>>>>>>>> 
>>>>>>>> Over 16 years ago this was apparently a JDK issue. (People were
>>>>>>> using JDK
>>>>>>>> 1.4 at the time.)
>>>>>>>> See  Comment 21 <
>>>>>>> https://bz.apache.org/netbeans//show_bug.cgi?id=41098#c21
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> I suspect the workaround (which never really worked properly) isn’t
>>>>>>>> required anymore.
>>>>>>>> 
>>>>>>>> Scott
>>>>>>>> 
>>>>>>>> 
>>>>>>>>> On Apr 8, 2021, at 4:06 PM, Scott Palmer <sw...@gmail.com>
>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>> Both directions to/from a NetBeans editor to/from something
>>>>>>> outside.
>>>>>>>> Not consistent, but frequent enough - multiple times a week.
>>>>>>>>> 
>>>>>>>>> It seems when this occurs it is like the NetBeans editor has a
>>>>>>> private
>>>>>>>> clipboard.  Pasting outside NetBEans pastes the last thing copied
>>>>>>> outside
>>>>>>>> of NetBeans.  Pasting within a NetBeans editor pastes the last
>> thing
>>>>>>> copied
>>>>>>>> from a NetBeans editor.
>>>>>>>>> 
>>>>>>>>> Very frustrating when you are trying to copy to an email or a
>>>>>>> remote
>>>>>>>> desktop session, or between stack overflow etc...
>>>>>>>>> 
>>>>>>>>> Scott
>>>>>>>>> 
>>>>>>>>>> On Apr 8, 2021, at 3:59 PM, Geertjan Wielenga
>>>>>>>> <geertjan.wielenga@googlemail.com.INVALID <mailto:
>>>>>>>> geertjan.wielenga@googlemail.com.INVALID>> wrote:
>>>>>>>>>> 
>>>>>>>>>> It’s 100% about copying text from any NetBeans editor to
>> somewhere
>>>>>>>> outside
>>>>>>>>>> NetBeans? Or also the reverse? Consistently or sporadically?
>>>>>>>>>> 
>>>>>>>>>> Gj
>>>>>>>>>> 
>>>>>>>>>> On Thu, 8 Apr 2021 at 21:57, Scott Palmer <swpalmer@gmail.com
>>>>>>> <mailto:
>>>>>>>> swpalmer@gmail.com>> wrote:
>>>>>>>>>> 
>>>>>>>>>>> Windows 10
>>>>>>>>>>> JDK 8 through 16
>>>>>>>>>>> 
>>>>>>>>>>> See prior discussion here:
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>>>>>>> <
>>>>>>>> 
>>>>>>> 
>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> It seems many of us are just used to Copy and Paste not working
>>>>>>>> properly
>>>>>>>>>>> and we have various strategies to work around it.  It shouldn’t
>>>>>>> be
>>>>>>>> that way.
>>>>>>>>>>> 
>>>>>>>>>>> Scott
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>> On Apr 7, 2021, at 1:15 PM, Geertjan Wielenga
>>>>>>>>>>> <ge...@googlemail.com.INVALID> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> Operating system, JDK version, please...
>>>>>>>>>>>> 
>>>>>>>>>>>> Gj
>>>>>>>>>>>> 
>>>>>>>>>>>> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer <
>> swpalmer@gmail.com
>>>>>>>> <ma...@gmail.com> <mailto:
>>>>>>>>>>> swpalmer@gmail.com>> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>>> I know it probably is the same as before, but today it seems
>>>>>>> worse in
>>>>>>>>>>> 12.4
>>>>>>>>>>>>> beta 2 than it was in 12.3.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Cut and paste is such basic functionality that when it
>> doesn’t
>>>>>>> work
>>>>>>>> it
>>>>>>>>>>> is
>>>>>>>>>>>>> a major source of frustration.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Today I have been fighting cut and paste not working with
>>>>>>> NetBeans
>>>>>>>> 12.4
>>>>>>>>>>>>> beta 2 for a few hours.  Jumping through hoops to cut some
>>>>>>> text out
>>>>>>>> of a
>>>>>>>>>>>>> NetBeans editor and paste it into something else is not how I
>>>>>>> wanted
>>>>>>>> to
>>>>>>>>>>>>> spend my morning.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> This was discussed briefly in early February (see thread
>>>>>>> “System
>>>>>>>>>>> Clipboard
>>>>>>>>>>>>> Issues”)
>>>>>>>>>>>>> 
>>>>>>>>>>>>> It is has been reported here
>>>>>>>>>>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>>>>>>> https://issues.apache.org/jira/browse/NETBEANS-2159> <
>>>>>>>>>>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>>>>>>>>>> https://issues.apache.org/jira/browse/NETBEANS-2159>>
>>>>>>>>>>>>> Though that description is perhaps incomplete.  Both copying
>>>>>>> from
>>>>>>>>>>> NetBeans
>>>>>>>>>>>>> and pasting to NetBeans are affected.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> If you are doing cut and paste entirely within NetBeans you
>>>>>>> may not
>>>>>>>> see
>>>>>>>>>>>>> the issue. It is only when you want to cut and paste between
>>>>>>> NetBeans
>>>>>>>>>>> and
>>>>>>>>>>>>> an external program that it fails.  And it fails very
>>>>>>> frequently in
>>>>>>>> that
>>>>>>>>>>>>> case.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> The sense I got was that NetBeans was trying to work around a
>>>>>>> bug in
>>>>>>>> the
>>>>>>>>>>>>> JRE by using it’s own private clipboard.  I suspect the
>>>>>>> original JRE
>>>>>>>>>>> issue
>>>>>>>>>>>>> is long gone and NetBeans is just creating more problems with
>>>>>>> an
>>>>>>>> awkward
>>>>>>>>>>>>> workaround for a problem that isn’t there.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Scott
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>> 
>> 
> -- 
> Eric Bresie
> ebresie@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: 12.4 Can we fix cut and paste before release?

Posted by Eric Bresie <eb...@gmail.com>.
Don’t suppose something like this would help

http://www.shodor.org/interactivate/resources/InstructionsCopyPaste


On Fri, May 14, 2021 at 5:45 PM Scott Palmer <sw...@gmail.com> wrote:

> So even with the  -J-Dnetbeans.slow.system.clipboard.hack=false setting in
> netbeans.conf it still fails.
> :-(
> NB 12.4-rc3
> JDK 16 (Zulu 16.0.1)
> Win 10
>
> My netbeans.conf file contains
> -J-Dnetbeans.slow.system.clipboard.hack=false
> -J-Dorg.netbeans.core.NbClipboard=-1
>
> My attempts to paste from the system clipboard instead are pasting the last
> thing copied inside a NetBeans editor.
> There are no events added to the messages log when I paste.
> uigestures just shows:
> <record>
>   <date>2021-05-14T18:41:49</date>
>   <millis>1621032109778</millis>
>   <sequence>2512</sequence>
>   <logger>org.netbeans.ui.actions.editor</logger>
>   <level>500</level>
>   <thread>26</thread>
>   <message>UI_ACTION_EDITOR</message>
>   <key>UI_ACTION_EDITOR</key>
>   <catalog>&lt;null&gt;</catalog>
>
>
> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1621032109777,modifiers=Ctrl]
> on
>
> org.openide.text.QuietEditorPane[,0,0,1657x9742,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@3890976b
>
> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.xml.text.syntax.XMLKit@2f695bbb
> ,typeHandlers=]</param>
>
>
> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1621032109777,modifiers=Ctrl]
> on
>
> org.openide.text.QuietEditorPane[,0,0,1657x9742,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@3890976b
>
> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.xml.text.syntax.XMLKit@2f695bbb
> ,typeHandlers=]</param>
>
>
> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
>   <param>org.netbeans.editor.BaseKit$PasteAction@6479cfd5</param>
>   <param>paste-from-clipboard</param>
> </record>
>
>
> Regards,
>
> Scott
>
>
> On Wed, May 12, 2021 at 4:25 PM Scott Palmer <sw...@gmail.com> wrote:
>
> > Saw this in the logs.  i'm running with
> > -J-Dnetbeans.slow.system.clipboard.hack=false
> >
> > INFO [org.netbeans.NbClipboard]: System clipboard not available.
> > java.lang.IllegalStateException: cannot open system clipboard
> >     at java.desktop/sun.awt.windows.WClipboard.openClipboard(Native
> Method)
> >
> >     at
> java.desktop/sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:77)
> >
> >     at
> java.desktop/sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:138)
> > [catch] at org.netbeans.NbClipboard.getContents(NbClipboard.java:206)
> >
> >     at
> org.netbeans.modules.editor.impl.actions.clipboardhistory.ClipboardHistory.clipboardChanged(ClipboardHistory.java:110)
> >
> >     at
> org.openide.util.datatransfer.ExClipboard.fireClipboardChange(ExClipboard.java:72)
> >     at org.netbeans.NbClipboard.fireChange(NbClipboard.java:326)
> >     at org.netbeans.NbClipboard.flavorsChanged(NbClipboard.java:318)
> >
> >     at
> java.desktop/sun.awt.datatransfer.SunClipboard.lambda$checkChange$2(SunClipboard.java:435)
> >
> >     at
> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
> >
> >     at
> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
> >     at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
> >     at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
> >
> >     at
> java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
> >
> >     at
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
> >     at
> java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
> >
> >     at
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
> >
> >     at
> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
> >
> >     at
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
> >
> >     at
> java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
> >
> >     at
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
> >
> >     at
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >
> >     at
> java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
> >
> > I don't know why there would be an issue opening the system clipboard.
> > Cut and paste is working between apps at the moment.
> >
> > Scott
> >
> > On Wed, May 12, 2021 at 11:29 AM Scott Palmer <sw...@gmail.com>
> wrote:
> >
> >> Nevermind my request for a disable flag, sorry I'm tired.. forgot the
> old
> >> bug database mentioned
> >> -J-Dnetbeans.slow.system.clipboard.hack=false
> >>
> >> trying that...
> >>
> >> On Wed, May 12, 2021 at 11:22 AM Scott Palmer <sw...@gmail.com>
> wrote:
> >>
> >>> If there is something more I can do please let me know...  I've tried
> to
> >>> get any relevant logs (I can't find anything interesting).
> >>> This basic feature not working is driving me mad.  Can we perhaps
> >>> just get a flag to disable any old workarounds and just always use the
> >>> system clipboard?
> >>>
> >>> Scott
> >>>
> >>> On Thu, Apr 29, 2021 at 3:47 PM Scott Palmer <sw...@gmail.com>
> wrote:
> >>>
> >>>> So I've set this in my netbeans.conf file, but I don't notice anything
> >>>> that stands out in the logging.  Which file would it be in
> messages.log or
> >>>> uigestures?
> >>>> There is nothing relevant in messages.log and uigestures just shows
> >>>> that a paste was attempted - even though the wrong content was pasted
> (last
> >>>> thing copied from within Netbeans rather than what is on the system
> >>>> clipboard).
> >>>>
> >>>> This is the record form uigestures:
> >>>>
> >>>> <record>
> >>>>   <date>2021-04-29T11:30:43</date>
> >>>>   <millis>1619710243434</millis>
> >>>>   <sequence>1644</sequence>
> >>>>   <logger>org.netbeans.ui.actions.editor</logger>
> >>>>   <level>500</level>
> >>>>   <thread>26</thread>
> >>>>   <message>UI_ACTION_EDITOR</message>
> >>>>   <key>UI_ACTION_EDITOR</key>
> >>>>   <catalog>&lt;null&gt;</catalog>
> >>>>
> >>>>
> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
> >>>> on
> >>>>
> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
> >>>>
> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
> >>>> ,typeHandlers=]</param>
> >>>>
> >>>>
> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
> >>>> on
> >>>>
> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
> >>>>
> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
> >>>> ,typeHandlers=]</param>
> >>>>
> >>>>
> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
> >>>>   <param>org.netbeans.editor.BaseKit$PasteAction@70200aee</param>
> >>>>   <param>paste-from-clipboard</param>
> >>>> </record>
> >>>>
> >>>> Regards,
> >>>>
> >>>> Scott
> >>>>
> >>>> On Thu, Apr 8, 2021 at 4:20 PM Geertjan Wielenga
> >>>> <ge...@googlemail.com.invalid> wrote:
> >>>>
> >>>>> As stated there: “ Please run with logging enabled
> >>>>> (-J-Dorg.netbeans.core.NbClipboard=-1) and attach the
> >>>>>
> >>>>> part of log that records what happened during the broken situation.”
> >>>>>
> >>>>>
> >>>>> Thanks,
> >>>>>
> >>>>> Gj
> >>>>>
> >>>>> On Thu, 8 Apr 2021 at 22:12, Scott Palmer <sw...@gmail.com>
> wrote:
> >>>>>
> >>>>> > The discussion on this old bug seems to be most relevant:
> >>>>> >
> >>>>> >  https://bz.apache.org/netbeans//show_bug.cgi?id=41098
> >>>>> >
> >>>>> > Over 16 years ago this was apparently a JDK issue. (People were
> >>>>> using JDK
> >>>>> > 1.4 at the time.)
> >>>>> > See  Comment 21 <
> >>>>> https://bz.apache.org/netbeans//show_bug.cgi?id=41098#c21
> >>>>> > >
> >>>>> >
> >>>>> > I suspect the workaround (which never really worked properly) isn’t
> >>>>> > required anymore.
> >>>>> >
> >>>>> > Scott
> >>>>> >
> >>>>> >
> >>>>> > > On Apr 8, 2021, at 4:06 PM, Scott Palmer <sw...@gmail.com>
> >>>>> wrote:
> >>>>> > >
> >>>>> > > Both directions to/from a NetBeans editor to/from something
> >>>>> outside.
> >>>>> > Not consistent, but frequent enough - multiple times a week.
> >>>>> > >
> >>>>> > > It seems when this occurs it is like the NetBeans editor has a
> >>>>> private
> >>>>> > clipboard.  Pasting outside NetBEans pastes the last thing copied
> >>>>> outside
> >>>>> > of NetBeans.  Pasting within a NetBeans editor pastes the last
> thing
> >>>>> copied
> >>>>> > from a NetBeans editor.
> >>>>> > >
> >>>>> > > Very frustrating when you are trying to copy to an email or a
> >>>>> remote
> >>>>> > desktop session, or between stack overflow etc...
> >>>>> > >
> >>>>> > > Scott
> >>>>> > >
> >>>>> > >> On Apr 8, 2021, at 3:59 PM, Geertjan Wielenga
> >>>>> > <geertjan.wielenga@googlemail.com.INVALID <mailto:
> >>>>> > geertjan.wielenga@googlemail.com.INVALID>> wrote:
> >>>>> > >>
> >>>>> > >> It’s 100% about copying text from any NetBeans editor to
> somewhere
> >>>>> > outside
> >>>>> > >> NetBeans? Or also the reverse? Consistently or sporadically?
> >>>>> > >>
> >>>>> > >> Gj
> >>>>> > >>
> >>>>> > >> On Thu, 8 Apr 2021 at 21:57, Scott Palmer <swpalmer@gmail.com
> >>>>> <mailto:
> >>>>> > swpalmer@gmail.com>> wrote:
> >>>>> > >>
> >>>>> > >>> Windows 10
> >>>>> > >>> JDK 8 through 16
> >>>>> > >>>
> >>>>> > >>> See prior discussion here:
> >>>>> > >>>
> >>>>> > >>>
> >>>>> >
> >>>>>
> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
> >>>>> > <
> >>>>> >
> >>>>>
> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
> >>>>> > >
> >>>>> > >>>
> >>>>> > >>> It seems many of us are just used to Copy and Paste not working
> >>>>> > properly
> >>>>> > >>> and we have various strategies to work around it.  It shouldn’t
> >>>>> be
> >>>>> > that way.
> >>>>> > >>>
> >>>>> > >>> Scott
> >>>>> > >>>
> >>>>> > >>>
> >>>>> > >>>> On Apr 7, 2021, at 1:15 PM, Geertjan Wielenga
> >>>>> > >>> <ge...@googlemail.com.INVALID> wrote:
> >>>>> > >>>>
> >>>>> > >>>> Operating system, JDK version, please...
> >>>>> > >>>>
> >>>>> > >>>> Gj
> >>>>> > >>>>
> >>>>> > >>>> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer <
> swpalmer@gmail.com
> >>>>> > <ma...@gmail.com> <mailto:
> >>>>> > >>> swpalmer@gmail.com>> wrote:
> >>>>> > >>>>
> >>>>> > >>>>> I know it probably is the same as before, but today it seems
> >>>>> worse in
> >>>>> > >>> 12.4
> >>>>> > >>>>> beta 2 than it was in 12.3.
> >>>>> > >>>>>
> >>>>> > >>>>> Cut and paste is such basic functionality that when it
> doesn’t
> >>>>> work
> >>>>> > it
> >>>>> > >>> is
> >>>>> > >>>>> a major source of frustration.
> >>>>> > >>>>>
> >>>>> > >>>>> Today I have been fighting cut and paste not working with
> >>>>> NetBeans
> >>>>> > 12.4
> >>>>> > >>>>> beta 2 for a few hours.  Jumping through hoops to cut some
> >>>>> text out
> >>>>> > of a
> >>>>> > >>>>> NetBeans editor and paste it into something else is not how I
> >>>>> wanted
> >>>>> > to
> >>>>> > >>>>> spend my morning.
> >>>>> > >>>>>
> >>>>> > >>>>> This was discussed briefly in early February (see thread
> >>>>> “System
> >>>>> > >>> Clipboard
> >>>>> > >>>>> Issues”)
> >>>>> > >>>>>
> >>>>> > >>>>> It is has been reported here
> >>>>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
> >>>>> > https://issues.apache.org/jira/browse/NETBEANS-2159> <
> >>>>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
> >>>>> > >>> https://issues.apache.org/jira/browse/NETBEANS-2159>>
> >>>>> > >>>>> Though that description is perhaps incomplete.  Both copying
> >>>>> from
> >>>>> > >>> NetBeans
> >>>>> > >>>>> and pasting to NetBeans are affected.
> >>>>> > >>>>>
> >>>>> > >>>>> If you are doing cut and paste entirely within NetBeans you
> >>>>> may not
> >>>>> > see
> >>>>> > >>>>> the issue. It is only when you want to cut and paste between
> >>>>> NetBeans
> >>>>> > >>> and
> >>>>> > >>>>> an external program that it fails.  And it fails very
> >>>>> frequently in
> >>>>> > that
> >>>>> > >>>>> case.
> >>>>> > >>>>>
> >>>>> > >>>>> The sense I got was that NetBeans was trying to work around a
> >>>>> bug in
> >>>>> > the
> >>>>> > >>>>> JRE by using it’s own private clipboard.  I suspect the
> >>>>> original JRE
> >>>>> > >>> issue
> >>>>> > >>>>> is long gone and NetBeans is just creating more problems with
> >>>>> an
> >>>>> > awkward
> >>>>> > >>>>> workaround for a problem that isn’t there.
> >>>>> > >>>>>
> >>>>> > >>>>> Regards,
> >>>>> > >>>>>
> >>>>> > >>>>> Scott
> >>>>> > >
> >>>>> >
> >>>>> >
> >>>>>
> >>>>
>
-- 
Eric Bresie
ebresie@gmail.com

Re: 12.4 Can we fix cut and paste before release?

Posted by Scott Palmer <sw...@gmail.com>.
So even with the  -J-Dnetbeans.slow.system.clipboard.hack=false setting in
netbeans.conf it still fails.
:-(
NB 12.4-rc3
JDK 16 (Zulu 16.0.1)
Win 10

My netbeans.conf file contains
-J-Dnetbeans.slow.system.clipboard.hack=false
-J-Dorg.netbeans.core.NbClipboard=-1

My attempts to paste from the system clipboard instead are pasting the last
thing copied inside a NetBeans editor.
There are no events added to the messages log when I paste.
uigestures just shows:
<record>
  <date>2021-05-14T18:41:49</date>
  <millis>1621032109778</millis>
  <sequence>2512</sequence>
  <logger>org.netbeans.ui.actions.editor</logger>
  <level>500</level>
  <thread>26</thread>
  <message>UI_ACTION_EDITOR</message>
  <key>UI_ACTION_EDITOR</key>
  <catalog>&lt;null&gt;</catalog>

<param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1621032109777,modifiers=Ctrl]
on
org.openide.text.QuietEditorPane[,0,0,1657x9742,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@3890976b
,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.xml.text.syntax.XMLKit@2f695bbb
,typeHandlers=]</param>

<param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1621032109777,modifiers=Ctrl]
on
org.openide.text.QuietEditorPane[,0,0,1657x9742,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@3890976b
,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.xml.text.syntax.XMLKit@2f695bbb
,typeHandlers=]</param>

<param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
  <param>org.netbeans.editor.BaseKit$PasteAction@6479cfd5</param>
  <param>paste-from-clipboard</param>
</record>


Regards,

Scott


On Wed, May 12, 2021 at 4:25 PM Scott Palmer <sw...@gmail.com> wrote:

> Saw this in the logs.  i'm running with
> -J-Dnetbeans.slow.system.clipboard.hack=false
>
> INFO [org.netbeans.NbClipboard]: System clipboard not available.
> java.lang.IllegalStateException: cannot open system clipboard
>     at java.desktop/sun.awt.windows.WClipboard.openClipboard(Native Method)
>
>     at java.desktop/sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:77)
>
>     at java.desktop/sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:138)
> [catch] at org.netbeans.NbClipboard.getContents(NbClipboard.java:206)
>
>     at org.netbeans.modules.editor.impl.actions.clipboardhistory.ClipboardHistory.clipboardChanged(ClipboardHistory.java:110)
>
>     at org.openide.util.datatransfer.ExClipboard.fireClipboardChange(ExClipboard.java:72)
>     at org.netbeans.NbClipboard.fireChange(NbClipboard.java:326)
>     at org.netbeans.NbClipboard.flavorsChanged(NbClipboard.java:318)
>
>     at java.desktop/sun.awt.datatransfer.SunClipboard.lambda$checkChange$2(SunClipboard.java:435)
>
>     at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
>
>     at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
>     at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
>     at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
>
>     at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
>
>     at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
>     at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
>
>     at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
>
>     at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
>
>     at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
>
>     at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
>
>     at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
>
>     at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>
>     at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
>
> I don't know why there would be an issue opening the system clipboard.
> Cut and paste is working between apps at the moment.
>
> Scott
>
> On Wed, May 12, 2021 at 11:29 AM Scott Palmer <sw...@gmail.com> wrote:
>
>> Nevermind my request for a disable flag, sorry I'm tired.. forgot the old
>> bug database mentioned
>> -J-Dnetbeans.slow.system.clipboard.hack=false
>>
>> trying that...
>>
>> On Wed, May 12, 2021 at 11:22 AM Scott Palmer <sw...@gmail.com> wrote:
>>
>>> If there is something more I can do please let me know...  I've tried to
>>> get any relevant logs (I can't find anything interesting).
>>> This basic feature not working is driving me mad.  Can we perhaps
>>> just get a flag to disable any old workarounds and just always use the
>>> system clipboard?
>>>
>>> Scott
>>>
>>> On Thu, Apr 29, 2021 at 3:47 PM Scott Palmer <sw...@gmail.com> wrote:
>>>
>>>> So I've set this in my netbeans.conf file, but I don't notice anything
>>>> that stands out in the logging.  Which file would it be in messages.log or
>>>> uigestures?
>>>> There is nothing relevant in messages.log and uigestures just shows
>>>> that a paste was attempted - even though the wrong content was pasted (last
>>>> thing copied from within Netbeans rather than what is on the system
>>>> clipboard).
>>>>
>>>> This is the record form uigestures:
>>>>
>>>> <record>
>>>>   <date>2021-04-29T11:30:43</date>
>>>>   <millis>1619710243434</millis>
>>>>   <sequence>1644</sequence>
>>>>   <logger>org.netbeans.ui.actions.editor</logger>
>>>>   <level>500</level>
>>>>   <thread>26</thread>
>>>>   <message>UI_ACTION_EDITOR</message>
>>>>   <key>UI_ACTION_EDITOR</key>
>>>>   <catalog>&lt;null&gt;</catalog>
>>>>
>>>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>>>> on
>>>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>>>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>>>> ,typeHandlers=]</param>
>>>>
>>>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>>>> on
>>>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>>>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>>>> ,typeHandlers=]</param>
>>>>
>>>> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
>>>>   <param>org.netbeans.editor.BaseKit$PasteAction@70200aee</param>
>>>>   <param>paste-from-clipboard</param>
>>>> </record>
>>>>
>>>> Regards,
>>>>
>>>> Scott
>>>>
>>>> On Thu, Apr 8, 2021 at 4:20 PM Geertjan Wielenga
>>>> <ge...@googlemail.com.invalid> wrote:
>>>>
>>>>> As stated there: “ Please run with logging enabled
>>>>> (-J-Dorg.netbeans.core.NbClipboard=-1) and attach the
>>>>>
>>>>> part of log that records what happened during the broken situation.”
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Gj
>>>>>
>>>>> On Thu, 8 Apr 2021 at 22:12, Scott Palmer <sw...@gmail.com> wrote:
>>>>>
>>>>> > The discussion on this old bug seems to be most relevant:
>>>>> >
>>>>> >  https://bz.apache.org/netbeans//show_bug.cgi?id=41098
>>>>> >
>>>>> > Over 16 years ago this was apparently a JDK issue. (People were
>>>>> using JDK
>>>>> > 1.4 at the time.)
>>>>> > See  Comment 21 <
>>>>> https://bz.apache.org/netbeans//show_bug.cgi?id=41098#c21
>>>>> > >
>>>>> >
>>>>> > I suspect the workaround (which never really worked properly) isn’t
>>>>> > required anymore.
>>>>> >
>>>>> > Scott
>>>>> >
>>>>> >
>>>>> > > On Apr 8, 2021, at 4:06 PM, Scott Palmer <sw...@gmail.com>
>>>>> wrote:
>>>>> > >
>>>>> > > Both directions to/from a NetBeans editor to/from something
>>>>> outside.
>>>>> > Not consistent, but frequent enough - multiple times a week.
>>>>> > >
>>>>> > > It seems when this occurs it is like the NetBeans editor has a
>>>>> private
>>>>> > clipboard.  Pasting outside NetBEans pastes the last thing copied
>>>>> outside
>>>>> > of NetBeans.  Pasting within a NetBeans editor pastes the last thing
>>>>> copied
>>>>> > from a NetBeans editor.
>>>>> > >
>>>>> > > Very frustrating when you are trying to copy to an email or a
>>>>> remote
>>>>> > desktop session, or between stack overflow etc...
>>>>> > >
>>>>> > > Scott
>>>>> > >
>>>>> > >> On Apr 8, 2021, at 3:59 PM, Geertjan Wielenga
>>>>> > <geertjan.wielenga@googlemail.com.INVALID <mailto:
>>>>> > geertjan.wielenga@googlemail.com.INVALID>> wrote:
>>>>> > >>
>>>>> > >> It’s 100% about copying text from any NetBeans editor to somewhere
>>>>> > outside
>>>>> > >> NetBeans? Or also the reverse? Consistently or sporadically?
>>>>> > >>
>>>>> > >> Gj
>>>>> > >>
>>>>> > >> On Thu, 8 Apr 2021 at 21:57, Scott Palmer <swpalmer@gmail.com
>>>>> <mailto:
>>>>> > swpalmer@gmail.com>> wrote:
>>>>> > >>
>>>>> > >>> Windows 10
>>>>> > >>> JDK 8 through 16
>>>>> > >>>
>>>>> > >>> See prior discussion here:
>>>>> > >>>
>>>>> > >>>
>>>>> >
>>>>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>>>> > <
>>>>> >
>>>>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>>>> > >
>>>>> > >>>
>>>>> > >>> It seems many of us are just used to Copy and Paste not working
>>>>> > properly
>>>>> > >>> and we have various strategies to work around it.  It shouldn’t
>>>>> be
>>>>> > that way.
>>>>> > >>>
>>>>> > >>> Scott
>>>>> > >>>
>>>>> > >>>
>>>>> > >>>> On Apr 7, 2021, at 1:15 PM, Geertjan Wielenga
>>>>> > >>> <ge...@googlemail.com.INVALID> wrote:
>>>>> > >>>>
>>>>> > >>>> Operating system, JDK version, please...
>>>>> > >>>>
>>>>> > >>>> Gj
>>>>> > >>>>
>>>>> > >>>> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer <swpalmer@gmail.com
>>>>> > <ma...@gmail.com> <mailto:
>>>>> > >>> swpalmer@gmail.com>> wrote:
>>>>> > >>>>
>>>>> > >>>>> I know it probably is the same as before, but today it seems
>>>>> worse in
>>>>> > >>> 12.4
>>>>> > >>>>> beta 2 than it was in 12.3.
>>>>> > >>>>>
>>>>> > >>>>> Cut and paste is such basic functionality that when it doesn’t
>>>>> work
>>>>> > it
>>>>> > >>> is
>>>>> > >>>>> a major source of frustration.
>>>>> > >>>>>
>>>>> > >>>>> Today I have been fighting cut and paste not working with
>>>>> NetBeans
>>>>> > 12.4
>>>>> > >>>>> beta 2 for a few hours.  Jumping through hoops to cut some
>>>>> text out
>>>>> > of a
>>>>> > >>>>> NetBeans editor and paste it into something else is not how I
>>>>> wanted
>>>>> > to
>>>>> > >>>>> spend my morning.
>>>>> > >>>>>
>>>>> > >>>>> This was discussed briefly in early February (see thread
>>>>> “System
>>>>> > >>> Clipboard
>>>>> > >>>>> Issues”)
>>>>> > >>>>>
>>>>> > >>>>> It is has been reported here
>>>>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>>>> > https://issues.apache.org/jira/browse/NETBEANS-2159> <
>>>>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>>>> > >>> https://issues.apache.org/jira/browse/NETBEANS-2159>>
>>>>> > >>>>> Though that description is perhaps incomplete.  Both copying
>>>>> from
>>>>> > >>> NetBeans
>>>>> > >>>>> and pasting to NetBeans are affected.
>>>>> > >>>>>
>>>>> > >>>>> If you are doing cut and paste entirely within NetBeans you
>>>>> may not
>>>>> > see
>>>>> > >>>>> the issue. It is only when you want to cut and paste between
>>>>> NetBeans
>>>>> > >>> and
>>>>> > >>>>> an external program that it fails.  And it fails very
>>>>> frequently in
>>>>> > that
>>>>> > >>>>> case.
>>>>> > >>>>>
>>>>> > >>>>> The sense I got was that NetBeans was trying to work around a
>>>>> bug in
>>>>> > the
>>>>> > >>>>> JRE by using it’s own private clipboard.  I suspect the
>>>>> original JRE
>>>>> > >>> issue
>>>>> > >>>>> is long gone and NetBeans is just creating more problems with
>>>>> an
>>>>> > awkward
>>>>> > >>>>> workaround for a problem that isn’t there.
>>>>> > >>>>>
>>>>> > >>>>> Regards,
>>>>> > >>>>>
>>>>> > >>>>> Scott
>>>>> > >
>>>>> >
>>>>> >
>>>>>
>>>>

Re: 12.4 Can we fix cut and paste before release?

Posted by Scott Palmer <sw...@gmail.com>.
Saw this in the logs.  i'm running with
-J-Dnetbeans.slow.system.clipboard.hack=false

INFO [org.netbeans.NbClipboard]: System clipboard not available.
java.lang.IllegalStateException: cannot open system clipboard
    at java.desktop/sun.awt.windows.WClipboard.openClipboard(Native Method)
    at java.desktop/sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:77)
    at java.desktop/sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:138)
[catch] at org.netbeans.NbClipboard.getContents(NbClipboard.java:206)
    at org.netbeans.modules.editor.impl.actions.clipboardhistory.ClipboardHistory.clipboardChanged(ClipboardHistory.java:110)
    at org.openide.util.datatransfer.ExClipboard.fireClipboardChange(ExClipboard.java:72)
    at org.netbeans.NbClipboard.fireChange(NbClipboard.java:326)
    at org.netbeans.NbClipboard.flavorsChanged(NbClipboard.java:318)
    at java.desktop/sun.awt.datatransfer.SunClipboard.lambda$checkChange$2(SunClipboard.java:435)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

I don't know why there would be an issue opening the system clipboard.
Cut and paste is working between apps at the moment.

Scott

On Wed, May 12, 2021 at 11:29 AM Scott Palmer <sw...@gmail.com> wrote:

> Nevermind my request for a disable flag, sorry I'm tired.. forgot the old
> bug database mentioned
> -J-Dnetbeans.slow.system.clipboard.hack=false
>
> trying that...
>
> On Wed, May 12, 2021 at 11:22 AM Scott Palmer <sw...@gmail.com> wrote:
>
>> If there is something more I can do please let me know...  I've tried to
>> get any relevant logs (I can't find anything interesting).
>> This basic feature not working is driving me mad.  Can we perhaps
>> just get a flag to disable any old workarounds and just always use the
>> system clipboard?
>>
>> Scott
>>
>> On Thu, Apr 29, 2021 at 3:47 PM Scott Palmer <sw...@gmail.com> wrote:
>>
>>> So I've set this in my netbeans.conf file, but I don't notice anything
>>> that stands out in the logging.  Which file would it be in messages.log or
>>> uigestures?
>>> There is nothing relevant in messages.log and uigestures just shows that
>>> a paste was attempted - even though the wrong content was pasted (last
>>> thing copied from within Netbeans rather than what is on the system
>>> clipboard).
>>>
>>> This is the record form uigestures:
>>>
>>> <record>
>>>   <date>2021-04-29T11:30:43</date>
>>>   <millis>1619710243434</millis>
>>>   <sequence>1644</sequence>
>>>   <logger>org.netbeans.ui.actions.editor</logger>
>>>   <level>500</level>
>>>   <thread>26</thread>
>>>   <message>UI_ACTION_EDITOR</message>
>>>   <key>UI_ACTION_EDITOR</key>
>>>   <catalog>&lt;null&gt;</catalog>
>>>
>>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>>> on
>>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>>> ,typeHandlers=]</param>
>>>
>>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>>> on
>>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>>> ,typeHandlers=]</param>
>>>
>>> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
>>>   <param>org.netbeans.editor.BaseKit$PasteAction@70200aee</param>
>>>   <param>paste-from-clipboard</param>
>>> </record>
>>>
>>> Regards,
>>>
>>> Scott
>>>
>>> On Thu, Apr 8, 2021 at 4:20 PM Geertjan Wielenga
>>> <ge...@googlemail.com.invalid> wrote:
>>>
>>>> As stated there: “ Please run with logging enabled
>>>> (-J-Dorg.netbeans.core.NbClipboard=-1) and attach the
>>>>
>>>> part of log that records what happened during the broken situation.”
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Gj
>>>>
>>>> On Thu, 8 Apr 2021 at 22:12, Scott Palmer <sw...@gmail.com> wrote:
>>>>
>>>> > The discussion on this old bug seems to be most relevant:
>>>> >
>>>> >  https://bz.apache.org/netbeans//show_bug.cgi?id=41098
>>>> >
>>>> > Over 16 years ago this was apparently a JDK issue. (People were using
>>>> JDK
>>>> > 1.4 at the time.)
>>>> > See  Comment 21 <
>>>> https://bz.apache.org/netbeans//show_bug.cgi?id=41098#c21
>>>> > >
>>>> >
>>>> > I suspect the workaround (which never really worked properly) isn’t
>>>> > required anymore.
>>>> >
>>>> > Scott
>>>> >
>>>> >
>>>> > > On Apr 8, 2021, at 4:06 PM, Scott Palmer <sw...@gmail.com>
>>>> wrote:
>>>> > >
>>>> > > Both directions to/from a NetBeans editor to/from something outside.
>>>> > Not consistent, but frequent enough - multiple times a week.
>>>> > >
>>>> > > It seems when this occurs it is like the NetBeans editor has a
>>>> private
>>>> > clipboard.  Pasting outside NetBEans pastes the last thing copied
>>>> outside
>>>> > of NetBeans.  Pasting within a NetBeans editor pastes the last thing
>>>> copied
>>>> > from a NetBeans editor.
>>>> > >
>>>> > > Very frustrating when you are trying to copy to an email or a remote
>>>> > desktop session, or between stack overflow etc...
>>>> > >
>>>> > > Scott
>>>> > >
>>>> > >> On Apr 8, 2021, at 3:59 PM, Geertjan Wielenga
>>>> > <geertjan.wielenga@googlemail.com.INVALID <mailto:
>>>> > geertjan.wielenga@googlemail.com.INVALID>> wrote:
>>>> > >>
>>>> > >> It’s 100% about copying text from any NetBeans editor to somewhere
>>>> > outside
>>>> > >> NetBeans? Or also the reverse? Consistently or sporadically?
>>>> > >>
>>>> > >> Gj
>>>> > >>
>>>> > >> On Thu, 8 Apr 2021 at 21:57, Scott Palmer <swpalmer@gmail.com
>>>> <mailto:
>>>> > swpalmer@gmail.com>> wrote:
>>>> > >>
>>>> > >>> Windows 10
>>>> > >>> JDK 8 through 16
>>>> > >>>
>>>> > >>> See prior discussion here:
>>>> > >>>
>>>> > >>>
>>>> >
>>>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>>> > <
>>>> >
>>>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>>> > >
>>>> > >>>
>>>> > >>> It seems many of us are just used to Copy and Paste not working
>>>> > properly
>>>> > >>> and we have various strategies to work around it.  It shouldn’t be
>>>> > that way.
>>>> > >>>
>>>> > >>> Scott
>>>> > >>>
>>>> > >>>
>>>> > >>>> On Apr 7, 2021, at 1:15 PM, Geertjan Wielenga
>>>> > >>> <ge...@googlemail.com.INVALID> wrote:
>>>> > >>>>
>>>> > >>>> Operating system, JDK version, please...
>>>> > >>>>
>>>> > >>>> Gj
>>>> > >>>>
>>>> > >>>> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer <swpalmer@gmail.com
>>>> > <ma...@gmail.com> <mailto:
>>>> > >>> swpalmer@gmail.com>> wrote:
>>>> > >>>>
>>>> > >>>>> I know it probably is the same as before, but today it seems
>>>> worse in
>>>> > >>> 12.4
>>>> > >>>>> beta 2 than it was in 12.3.
>>>> > >>>>>
>>>> > >>>>> Cut and paste is such basic functionality that when it doesn’t
>>>> work
>>>> > it
>>>> > >>> is
>>>> > >>>>> a major source of frustration.
>>>> > >>>>>
>>>> > >>>>> Today I have been fighting cut and paste not working with
>>>> NetBeans
>>>> > 12.4
>>>> > >>>>> beta 2 for a few hours.  Jumping through hoops to cut some text
>>>> out
>>>> > of a
>>>> > >>>>> NetBeans editor and paste it into something else is not how I
>>>> wanted
>>>> > to
>>>> > >>>>> spend my morning.
>>>> > >>>>>
>>>> > >>>>> This was discussed briefly in early February (see thread “System
>>>> > >>> Clipboard
>>>> > >>>>> Issues”)
>>>> > >>>>>
>>>> > >>>>> It is has been reported here
>>>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>>> > https://issues.apache.org/jira/browse/NETBEANS-2159> <
>>>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>>> > >>> https://issues.apache.org/jira/browse/NETBEANS-2159>>
>>>> > >>>>> Though that description is perhaps incomplete.  Both copying
>>>> from
>>>> > >>> NetBeans
>>>> > >>>>> and pasting to NetBeans are affected.
>>>> > >>>>>
>>>> > >>>>> If you are doing cut and paste entirely within NetBeans you may
>>>> not
>>>> > see
>>>> > >>>>> the issue. It is only when you want to cut and paste between
>>>> NetBeans
>>>> > >>> and
>>>> > >>>>> an external program that it fails.  And it fails very
>>>> frequently in
>>>> > that
>>>> > >>>>> case.
>>>> > >>>>>
>>>> > >>>>> The sense I got was that NetBeans was trying to work around a
>>>> bug in
>>>> > the
>>>> > >>>>> JRE by using it’s own private clipboard.  I suspect the
>>>> original JRE
>>>> > >>> issue
>>>> > >>>>> is long gone and NetBeans is just creating more problems with an
>>>> > awkward
>>>> > >>>>> workaround for a problem that isn’t there.
>>>> > >>>>>
>>>> > >>>>> Regards,
>>>> > >>>>>
>>>> > >>>>> Scott
>>>> > >
>>>> >
>>>> >
>>>>
>>>

Re: 12.4 Can we fix cut and paste before release?

Posted by Scott Palmer <sw...@gmail.com>.
Nevermind my request for a disable flag, sorry I'm tired.. forgot the old
bug database mentioned
-J-Dnetbeans.slow.system.clipboard.hack=false

trying that...

On Wed, May 12, 2021 at 11:22 AM Scott Palmer <sw...@gmail.com> wrote:

> If there is something more I can do please let me know...  I've tried to
> get any relevant logs (I can't find anything interesting).
> This basic feature not working is driving me mad.  Can we perhaps just get
> a flag to disable any old workarounds and just always use the system
> clipboard?
>
> Scott
>
> On Thu, Apr 29, 2021 at 3:47 PM Scott Palmer <sw...@gmail.com> wrote:
>
>> So I've set this in my netbeans.conf file, but I don't notice anything
>> that stands out in the logging.  Which file would it be in messages.log or
>> uigestures?
>> There is nothing relevant in messages.log and uigestures just shows that
>> a paste was attempted - even though the wrong content was pasted (last
>> thing copied from within Netbeans rather than what is on the system
>> clipboard).
>>
>> This is the record form uigestures:
>>
>> <record>
>>   <date>2021-04-29T11:30:43</date>
>>   <millis>1619710243434</millis>
>>   <sequence>1644</sequence>
>>   <logger>org.netbeans.ui.actions.editor</logger>
>>   <level>500</level>
>>   <thread>26</thread>
>>   <message>UI_ACTION_EDITOR</message>
>>   <key>UI_ACTION_EDITOR</key>
>>   <catalog>&lt;null&gt;</catalog>
>>
>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>> on
>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>> ,typeHandlers=]</param>
>>
>> <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Ctrl+V,when=1619710243434,modifiers=Ctrl]
>> on
>> org.openide.text.QuietEditorPane[,0,0,1300x11788,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=com.formdev.flatlaf.ui.FlatMarginBorder@74a6a46d
>> ,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=187,g=187,b=187],disabledTextColor=javax.swing.plaf.ColorUIResource[r=136,g=136,b=136],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=187,g=187,b=187],selectionColor=javax.swing.plaf.ColorUIResource[r=75,g=110,b=175],kit=org.netbeans.modules.editor.java.JavaKit@3c33afe2
>> ,typeHandlers=]</param>
>>
>> <param>org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]</param>
>>   <param>org.netbeans.editor.BaseKit$PasteAction@70200aee</param>
>>   <param>paste-from-clipboard</param>
>> </record>
>>
>> Regards,
>>
>> Scott
>>
>> On Thu, Apr 8, 2021 at 4:20 PM Geertjan Wielenga
>> <ge...@googlemail.com.invalid> wrote:
>>
>>> As stated there: “ Please run with logging enabled
>>> (-J-Dorg.netbeans.core.NbClipboard=-1) and attach the
>>>
>>> part of log that records what happened during the broken situation.”
>>>
>>>
>>> Thanks,
>>>
>>> Gj
>>>
>>> On Thu, 8 Apr 2021 at 22:12, Scott Palmer <sw...@gmail.com> wrote:
>>>
>>> > The discussion on this old bug seems to be most relevant:
>>> >
>>> >  https://bz.apache.org/netbeans//show_bug.cgi?id=41098
>>> >
>>> > Over 16 years ago this was apparently a JDK issue. (People were using
>>> JDK
>>> > 1.4 at the time.)
>>> > See  Comment 21 <
>>> https://bz.apache.org/netbeans//show_bug.cgi?id=41098#c21
>>> > >
>>> >
>>> > I suspect the workaround (which never really worked properly) isn’t
>>> > required anymore.
>>> >
>>> > Scott
>>> >
>>> >
>>> > > On Apr 8, 2021, at 4:06 PM, Scott Palmer <sw...@gmail.com> wrote:
>>> > >
>>> > > Both directions to/from a NetBeans editor to/from something outside.
>>> > Not consistent, but frequent enough - multiple times a week.
>>> > >
>>> > > It seems when this occurs it is like the NetBeans editor has a
>>> private
>>> > clipboard.  Pasting outside NetBEans pastes the last thing copied
>>> outside
>>> > of NetBeans.  Pasting within a NetBeans editor pastes the last thing
>>> copied
>>> > from a NetBeans editor.
>>> > >
>>> > > Very frustrating when you are trying to copy to an email or a remote
>>> > desktop session, or between stack overflow etc...
>>> > >
>>> > > Scott
>>> > >
>>> > >> On Apr 8, 2021, at 3:59 PM, Geertjan Wielenga
>>> > <geertjan.wielenga@googlemail.com.INVALID <mailto:
>>> > geertjan.wielenga@googlemail.com.INVALID>> wrote:
>>> > >>
>>> > >> It’s 100% about copying text from any NetBeans editor to somewhere
>>> > outside
>>> > >> NetBeans? Or also the reverse? Consistently or sporadically?
>>> > >>
>>> > >> Gj
>>> > >>
>>> > >> On Thu, 8 Apr 2021 at 21:57, Scott Palmer <swpalmer@gmail.com
>>> <mailto:
>>> > swpalmer@gmail.com>> wrote:
>>> > >>
>>> > >>> Windows 10
>>> > >>> JDK 8 through 16
>>> > >>>
>>> > >>> See prior discussion here:
>>> > >>>
>>> > >>>
>>> >
>>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>> > <
>>> >
>>> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21FB7D82-E02C-4A4F-8BD7-605615CC5E3E@gmail.com%3e
>>> > >
>>> > >>>
>>> > >>> It seems many of us are just used to Copy and Paste not working
>>> > properly
>>> > >>> and we have various strategies to work around it.  It shouldn’t be
>>> > that way.
>>> > >>>
>>> > >>> Scott
>>> > >>>
>>> > >>>
>>> > >>>> On Apr 7, 2021, at 1:15 PM, Geertjan Wielenga
>>> > >>> <ge...@googlemail.com.INVALID> wrote:
>>> > >>>>
>>> > >>>> Operating system, JDK version, please...
>>> > >>>>
>>> > >>>> Gj
>>> > >>>>
>>> > >>>> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer <swpalmer@gmail.com
>>> > <ma...@gmail.com> <mailto:
>>> > >>> swpalmer@gmail.com>> wrote:
>>> > >>>>
>>> > >>>>> I know it probably is the same as before, but today it seems
>>> worse in
>>> > >>> 12.4
>>> > >>>>> beta 2 than it was in 12.3.
>>> > >>>>>
>>> > >>>>> Cut and paste is such basic functionality that when it doesn’t
>>> work
>>> > it
>>> > >>> is
>>> > >>>>> a major source of frustration.
>>> > >>>>>
>>> > >>>>> Today I have been fighting cut and paste not working with
>>> NetBeans
>>> > 12.4
>>> > >>>>> beta 2 for a few hours.  Jumping through hoops to cut some text
>>> out
>>> > of a
>>> > >>>>> NetBeans editor and paste it into something else is not how I
>>> wanted
>>> > to
>>> > >>>>> spend my morning.
>>> > >>>>>
>>> > >>>>> This was discussed briefly in early February (see thread “System
>>> > >>> Clipboard
>>> > >>>>> Issues”)
>>> > >>>>>
>>> > >>>>> It is has been reported here
>>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>> > https://issues.apache.org/jira/browse/NETBEANS-2159> <
>>> > >>>>> https://issues.apache.org/jira/browse/NETBEANS-2159 <
>>> > >>> https://issues.apache.org/jira/browse/NETBEANS-2159>>
>>> > >>>>> Though that description is perhaps incomplete.  Both copying from
>>> > >>> NetBeans
>>> > >>>>> and pasting to NetBeans are affected.
>>> > >>>>>
>>> > >>>>> If you are doing cut and paste entirely within NetBeans you may
>>> not
>>> > see
>>> > >>>>> the issue. It is only when you want to cut and paste between
>>> NetBeans
>>> > >>> and
>>> > >>>>> an external program that it fails.  And it fails very frequently
>>> in
>>> > that
>>> > >>>>> case.
>>> > >>>>>
>>> > >>>>> The sense I got was that NetBeans was trying to work around a
>>> bug in
>>> > the
>>> > >>>>> JRE by using it’s own private clipboard.  I suspect the original
>>> JRE
>>> > >>> issue
>>> > >>>>> is long gone and NetBeans is just creating more problems with an
>>> > awkward
>>> > >>>>> workaround for a problem that isn’t there.
>>> > >>>>>
>>> > >>>>> Regards,
>>> > >>>>>
>>> > >>>>> Scott
>>> > >
>>> >
>>> >
>>>
>>