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

2022-06-27 Thread Joachim Rohde
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
 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@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?

2022-06-21 Thread Eric Bresie
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 
Sent: Tuesday, June 21, 2022 9:53:25 AM
To: dev@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
 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@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?

2022-06-21 Thread Neil C Smith
On Mon, 20 Jun 2022 at 14:27, Joachim Rohde
 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@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?

2022-06-21 Thread Jean-Marc Borer
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 
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
> >  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.wiele...@googlemail.com> wrote:
> >>
> >>> Indeed, please test without settings that regular installs will have.
> >>>
> >>> Gj
> >>>
> >>> On Fri, 6 Aug 2021 at 17:22, Scott Palmer  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 
> >> wrote:
> >
> > On Fri, 6 Aug 2021 at 04:23, Scott Palmer 
> 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 
> >> 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-unsubscr...@netbeans.apache.org
>  For additional commands, e-mail: dev-h...@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-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@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?

2022-06-20 Thread Joachim Rohde
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
 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.wiele...@googlemail.com> wrote:


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

Gj

On Fri, 6 Aug 2021 at 17:22, Scott Palmer  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 

wrote:


On Fri, 6 Aug 2021 at 04:23, Scott Palmer  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 

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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@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?

2022-06-17 Thread Scott Palmer
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
 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.wiele...@googlemail.com> wrote:
>
> > Indeed, please test without settings that regular installs will have.
> >
> > Gj
> >
> > On Fri, 6 Aug 2021 at 17:22, Scott Palmer  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 
> wrote:
> >> >
> >> > On Fri, 6 Aug 2021 at 04:23, Scott Palmer  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 
> 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-unsubscr...@netbeans.apache.org
> >> For additional commands, e-mail: dev-h...@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?

2021-08-06 Thread Geertjan Wielenga
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.wiele...@googlemail.com> wrote:

> Indeed, please test without settings that regular installs will have.
>
> Gj
>
> On Fri, 6 Aug 2021 at 17:22, Scott Palmer  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  wrote:
>> >
>> > On Fri, 6 Aug 2021 at 04:23, Scott Palmer  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  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-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: dev-h...@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?

2021-08-06 Thread Geertjan Wielenga
Indeed, please test without settings that regular installs will have.

Gj

On Fri, 6 Aug 2021 at 17:22, Scott Palmer  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  wrote:
> >
> > On Fri, 6 Aug 2021 at 04:23, Scott Palmer  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  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-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: dev-h...@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?

2021-08-06 Thread Scott Palmer
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  wrote:
> 
> On Fri, 6 Aug 2021 at 04:23, Scott Palmer  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  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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@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?

2021-08-06 Thread Neil C Smith
On Fri, 6 Aug 2021 at 04:23, Scott Palmer  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  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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@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?

2021-08-05 Thread Scott Palmer
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  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  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  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:
>>> 
>>> 2021-05-14T18:41:49
>>> 1621032109778
>>> 2512
>>> org.netbeans.ui.actions.editor
>>> 500
>>> 26
>>> UI_ACTION_EDITOR
>>> UI_ACTION_EDITOR
>>> null
>>> 
>>> 
>>> 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=]
>>> 
>>> 
>>> 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=]
>>> 
>>> 
>>> org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]
>>> org.netbeans.editor.BaseKit$PasteAction@6479cfd5
>>> paste-from-clipboard
>>> 
>>> 
>>> 
>>> Regards,
>>> 
>>> Scott
>>> 
>>> 
 On Wed, May 12, 2021 at 4:25 PM Scott Palmer  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.(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)
 

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

2021-06-09 Thread Scott Palmer
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  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  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:
>> 
>>  2021-05-14T18:41:49
>>  1621032109778
>>  2512
>>  org.netbeans.ui.actions.editor
>>  500
>>  26
>>  UI_ACTION_EDITOR
>>  UI_ACTION_EDITOR
>>  null
>> 
>> 
>> 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=]
>> 
>> 
>> 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=]
>> 
>> 
>> org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]
>>  org.netbeans.editor.BaseKit$PasteAction@6479cfd5
>>  paste-from-clipboard
>> 
>> 
>> 
>> Regards,
>> 
>> Scott
>> 
>> 
>>> On Wed, May 12, 2021 at 4:25 PM Scott Palmer  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.(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
>> 

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

2021-06-06 Thread Eric Bresie
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  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:
> 
>   2021-05-14T18:41:49
>   1621032109778
>   2512
>   org.netbeans.ui.actions.editor
>   500
>   26
>   UI_ACTION_EDITOR
>   UI_ACTION_EDITOR
>   null
>
>
> 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=]
>
>
> 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=]
>
>
> org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]
>   org.netbeans.editor.BaseKit$PasteAction@6479cfd5
>   paste-from-clipboard
> 
>
>
> Regards,
>
> Scott
>
>
> On Wed, May 12, 2021 at 4:25 PM Scott Palmer  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.(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 

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

2021-05-14 Thread Scott Palmer
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:

  2021-05-14T18:41:49
  1621032109778
  2512
  org.netbeans.ui.actions.editor
  500
  26
  UI_ACTION_EDITOR
  UI_ACTION_EDITOR
  null

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=]

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=]

org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]
  org.netbeans.editor.BaseKit$PasteAction@6479cfd5
  paste-from-clipboard



Regards,

Scott


On Wed, May 12, 2021 at 4:25 PM Scott Palmer  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.(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  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...
>>

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

2021-05-12 Thread Scott Palmer
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  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  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:
>>
>> 
>>   2021-04-29T11:30:43
>>   1619710243434
>>   1644
>>   org.netbeans.ui.actions.editor
>>   500
>>   26
>>   UI_ACTION_EDITOR
>>   UI_ACTION_EDITOR
>>   null
>>
>> 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=]
>>
>> 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=]
>>
>> org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]
>>   org.netbeans.editor.BaseKit$PasteAction@70200aee
>>   paste-from-clipboard
>> 
>>
>> Regards,
>>
>> Scott
>>
>> On Thu, Apr 8, 2021 at 4:20 PM Geertjan Wielenga
>>  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  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  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.wiele...@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 >> >> > swpal...@gmail.com>> wrote:
>>> > >>
>>> > >>> Windows 10
>>> > >>> JDK 8 through 16
>>> > >>>
>>> > >>> See prior discussion here:
>>> > >>>
>>> > >>>
>>> >
>>> 

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

2021-04-29 Thread Scott Palmer
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:


  2021-04-29T11:30:43
  1619710243434
  1644
  org.netbeans.ui.actions.editor
  500
  26
  UI_ACTION_EDITOR
  UI_ACTION_EDITOR
  null

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=]

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=]

org.netbeans.editor.BaseKit$PasteAction[paste-from-clipboard]
  org.netbeans.editor.BaseKit$PasteAction@70200aee
  paste-from-clipboard


Regards,

Scott

On Thu, Apr 8, 2021 at 4:20 PM Geertjan Wielenga
 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  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  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.wiele...@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   > swpal...@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-605615cc5...@gmail.com%3e
> > <
> >
> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21fb7d82-e02c-4a4f-8bd7-605615cc5...@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
> > >>>  wrote:
> > 
> >  Operating system, JDK version, please...
> > 
> >  Gj
> > 
> >  On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer  >   > >>> swpal...@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 

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

2021-04-09 Thread Scott Palmer
Copy and paste works between other non-NetBeans applications - only the content 
to/from NetBeans is effected.

Windows Defender is running, though my code folders are excluded.

Restarting Windows at what point?  A restart will fix the issue.  This doesn’t 
happen always. I’m not sure what triggers it to happen, but once it starts it 
will be 100% repeatable until it’s cleared.  It seems I can do that by copying 
from some non-editor window within NetBeans.

Remote Desktop may be a factor in triggering it.  Of course I’ve been trying to 
force it to happen since Geertjan asked for the logs, when you want it to 
happen is when it seems to go the longest without happening :-), typical bug 
behavior.  I’ll throw Remote Desktop into the equation to see if that improves 
my chances.

It fails between local applications when it happens. Remote desktop doesn’t 
have to be on one side of the copy/paste once the bug starts.


Scott


> On Apr 9, 2021, at 1:12 PM, Eric Bresie  wrote:
> 
> Does copy/paste between non Netbeans applications (i.e. is it a possible 
> Windows 10 issue)?
> 
> Do you have virus detection running?  
> 
> Have you restarted (Windows and/or Windows Explorer)?
> 
> Are you doing any of this via Remote Desktop?
> 
> Eric Bresie
> ebre...@gmail.com 
>> On April 8, 2021 at 3:12:20 PM CDT, Scott Palmer > > 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 > > 
>> 
>> I suspect the workaround (which never really worked properly) isn’t required 
>> anymore. 
>> 
>> Scott 
>> 
>> 
>>> On Apr 8, 2021, at 4:06 PM, Scott Palmer >> > 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 
 >>>  
 >> 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 >>>  >> 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-605615cc5...@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 
>  > wrote: 
>> 
>> Operating system, JDK version, please... 
>> 
>> Gj 
>> 
>> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer >  > >  swpal...@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 

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

2021-04-09 Thread Eric Bresie
Does copy/paste between non Netbeans applications (i.e. is it a possible 
Windows 10 issue)?

Do you have virus detection running?

Have you restarted (Windows and/or Windows Explorer)?

Are you doing any of this via Remote Desktop?

Eric Bresie
ebre...@gmail.com (mailto:ebre...@gmail.com)

> On April 8, 2021 at 3:12:20 PM CDT, Scott Palmer  (mailto:swpal...@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 
>
> I suspect the workaround (which never really worked properly) isn’t required 
> anymore.
>
> Scott
>
>
> > On Apr 8, 2021, at 4:06 PM, Scott Palmer  > (mailto:swpal...@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 
> > >  > > (mailto:geertjan.wiele...@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  > > (mailto:swpal...@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-605615cc5...@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
> > > >  > > > (mailto:geertjan.wiele...@googlemail.com.INVALID)> wrote:
> > > > >
> > > > > Operating system, JDK version, please...
> > > > >
> > > > > Gj
> > > > >
> > > > > On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer  > > > > (mailto:swpal...@gmail.com)   > > > swpal...@gmail.com (mailto:swpal...@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>>
> > > > > > 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?

2021-04-08 Thread Geertjan Wielenga
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  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  >
>
> I suspect the workaround (which never really worked properly) isn’t
> required anymore.
>
> Scott
>
>
> > On Apr 8, 2021, at 4:06 PM, Scott Palmer  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.wiele...@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  swpal...@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-605615cc5...@gmail.com%3e
> <
> http://mail-archives.apache.org/mod_mbox/netbeans-dev/202102.mbox/%3c21fb7d82-e02c-4a4f-8bd7-605615cc5...@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
> >>>  wrote:
> 
>  Operating system, JDK version, please...
> 
>  Gj
> 
>  On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer    >>> swpal...@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?

2021-04-08 Thread Scott Palmer
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 

I suspect the workaround (which never really worked properly) isn’t required 
anymore.

Scott


> On Apr 8, 2021, at 4:06 PM, Scott Palmer  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 
>> > > 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 > > 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-605615cc5...@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
>>>  wrote:
 
 Operating system, JDK version, please...
 
 Gj
 
 On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer >>>  >> swpal...@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>>
> 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?

2021-04-08 Thread Ömer Halit Çizmeci
Hi,

I am having the similar problem with copy and paste. This mostly happens
when I have two NetBeans instances opened. Say 12.2 and 12.3. I am using
both Oracle Java 8 64bit and OpenJDK 11 64bit. And how do I resolve this
issue? I open an empty notepad. Copy text from NetBeans to Notepad. And
then copy another text from notepad to NetBeans. Repeating this once or
twice usually solves the problem.

OS: Windows 10 64bit

On Thu, Apr 8, 2021, 11:00 PM Geertjan Wielenga
 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  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-605615cc5...@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
> >  wrote:
> > >
> > > Operating system, JDK version, please...
> > >
> > > Gj
> > >
> > > On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer   > swpal...@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>>
> > >> 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?

2021-04-08 Thread Scott Palmer
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 
>  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  > 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-605615cc5...@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
>>  wrote:
>>> 
>>> Operating system, JDK version, please...
>>> 
>>> Gj
>>> 
>>> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer >>  > swpal...@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>>
 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?

2021-04-08 Thread Geertjan Wielenga
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  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-605615cc5...@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
>  wrote:
> >
> > Operating system, JDK version, please...
> >
> > Gj
> >
> > On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer  swpal...@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>>
> >> 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?

2021-04-08 Thread Scott Palmer
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-605615cc5...@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 
>  wrote:
> 
> Operating system, JDK version, please...
> 
> Gj
> 
> On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer  > 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 
>> >
>> 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?

2021-04-07 Thread Geertjan Wielenga
Operating system, JDK version, please...

Gj

On Wed, Apr 7, 2021 at 7:13 PM Scott Palmer  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>
> 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
>
>