You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Kenneth Fogel <kf...@dawsoncollege.qc.ca> on 2022/08/30 17:34:18 UTC

Copy Paste still an issue

NetBeans 15 continues to give me trouble with copy and paste in Windows 11. A plain copy only works inside NetBeans. Attempts to paste into Word or Notepad++ do not work and nothing shows as available to paste if the source was NetBeans. I have learned that Cut works so now I Ctrl-X and then immediately do Ctrl-Z to restore the text in NetBeans. I can now paste the text anywhere.

Ken


Re: Copy Paste still an issue

Posted by Neil C Smith <ne...@apache.org>.
On Tue, 30 Aug 2022 at 18:35, Kenneth Fogel <kf...@dawsoncollege.qc.ca> wrote:
> NetBeans 15 continues to give me trouble with copy and paste in Windows 11. A plain copy only works inside NetBeans. Attempts to paste into Word or Notepad++ do not work and nothing shows as available to paste if the source was NetBeans. I have learned that Cut works so now I Ctrl-X and then immediately do Ctrl-Z to restore the text in NetBeans. I can now paste the text anywhere.

I'd love to know what the common denominator of this issue is.  I've
had a look at this a few times, and never been able to reproduce it.

Please follow up on https://github.com/apache/netbeans/issues/3962 too.

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: Copy Paste still an issue

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Well, as a workaround (and, like Neil, I'm not able to reproduce) you could
copy from GitHub where your files are stored.

Gj

On Wed, Aug 31, 2022 at 3:51 PM Kenneth Fogel <kf...@dawsoncollege.qc.ca>
wrote:

> And now I notice that I cannot paste from Word into NetBeans. I usually
> write code with NetBeans and then paste it in a Word doc but just now I
> wanted to paste some code I wrote in Word into NetBeans. It does not work
> and even using Cut does not make a difference. That I am not the only one
> who comes across this issue leads me to believe it is not a 'just on my
> machine' problem.
>
> This all makes using NetBeans in the book I am writing more difficult than
> it needs to be.
>
> Ken
>
>
> -----Original Message-----
> From: Kenneth Fogel <kf...@dawsoncollege.qc.ca>
> Sent: August 30, 2022 1:34 PM
> To: dev@netbeans.apache.org
> Subject: Copy Paste still an issue
>
> NetBeans 15 continues to give me trouble with copy and paste in Windows
> 11. A plain copy only works inside NetBeans. Attempts to paste into Word or
> Notepad++ do not work and nothing shows as available to paste if the source
> was NetBeans. I have learned that Cut works so now I Ctrl-X and then
> immediately do Ctrl-Z to restore the text in NetBeans. I can now paste the
> text anywhere.
>
> Ken
>
>
> ---------------------------------------------------------------------
> 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: Copy Paste still an issue

Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Out of interest, what shows with CTRL_SHIFT-D (paste from history)?

Gj

On Fri, 2 Sep 2022 at 19:44, Kenneth Fogel <kf...@dawsoncollege.qc.ca>
wrote:

> The problem with copy and paste occurs when I have NetBeans, Microsoft
> Word, and Notepad++ all open. On a fresh reboot of a Windows system you may
> be successful copying either to or from NetBeans. However, this has never
> worked more than twice before it stops. It will not work in both directions
> although it works fine inside NetBeans. At one time I could copy from
> NetBeans to NotePad++ and copy from Notepad++ to Word but the ability to
> copy to Notepad++ is now hit or miss, mostly miss. My trick of doing a Cut
> in NB and then paste into anything else is also intermittent.
>
>
> To reproduce try this:
>
> Open NB and a project in NB. Open NotePad++ or Word.
> Copy just one line of a file from NB to NotePad++ or Word. It should work.
> Try a few other lines but just a single line at a time.
> Now select and copy 20 or so lines from the NB file. You will not be able
> to paste it. Go back and just copy a single line that had worked, and it
> will no longer work.
> Try Cut, Paste, and then restore the Cut. This may or may not work.
>
> The system I use is an i9 w/ 32 Gig and Windows 11. NetBeans is running
> under Java 17 but this was a problem with earlier versions of Java as well.
>
> Ken
>
>
>
>
>
> -----Original Message-----
> From: Ernie Rael <er...@raelity.com>
> Sent: August 31, 2022 9:13 PM
> To: dev@netbeans.apache.org
> Subject: Re: Copy Paste still an issue
>
> On 8/31/22 9:15 AM, Scott Palmer wrote:
> > It’s an intermittent issue on Windows that has been around for a long
> time.
> >
> > Edit the netbeans.conf file in netbeans/etc/ to add:
> >   -J-Dorg.netbeans.NbClipboard.level=FINEST
> >
> > I keep forgetting after installing new versions :-(
>
> FYI, jLogman in the plugin portal, can be installed and does not require a
> NB restart. Then
>
>  1. Tools>ManageLogging brings up a tree table of the loggers,  2.
> navigate to org.netbeans.NbClipboard  3. Click in the level column  4.
> select FINE in the combo box  5. optional: right click anywhere
>     navigate/check Configurations > ApplyConfigurationAtStartup
>     so the logging is enabled after a NB restart
>
> Of course this only gives information after the fact, so who knows if it
> would be useful.
>
> Starting logging in netbeans.conf doesn't have a brief gap at startup.
>
> -ernie
>
> >
> > That may provide needed details in the logs.
> >
> > Hopefully we can get this sorted… It’s been a thorn in my side for years.
> >
> >
> > Scott
> >
> >> On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org>
> wrote:
> >>
> >> On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <
> kfogel@dawsoncollege.qc.ca> wrote:
> >>> That I am not the only one who comes across this issue leads me to
> believe it is not a 'just on my machine' problem.
> >> It is definitely not just on your machine, but it is also not on
> >> every machine.  The bug linked previously has a bunch of questions
> >> and a link to a previous thread on here with flags and things to test.
> >>
> >> Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
> >>
> >> Until someone working on the IDE can reproduce the circumstances of
> >> this issue, I don't see it getting fixed.
> >>
> >> Best wishes,
> >>
> >> Neil
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: 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://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwi
> >> ki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp
> >> ;data=05%7C01%7Ckfogel%40dawsoncollege.qc.ca%7C1537e817633e45a93a8208
> >> da8bb762e1%7Cb6b66a7afbbb42b8a7c5712342094eef%7C1%7C0%7C6379759170026
> >> 44439%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJ
> >> BTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=o9YVNgadPYcarCZ
> >> VnIlvvkrUlg5DjQ3uVS2Lq8ZxEDk%3D&amp;reserved=0
> >>
> >>
> >>
> > ---------------------------------------------------------------------
> > 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://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwik
> > i.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp;d
> > ata=05%7C01%7Ckfogel%40dawsoncollege.qc.ca%7C1537e817633e45a93a8208da8
> > bb762e1%7Cb6b66a7afbbb42b8a7c5712342094eef%7C1%7C0%7C63797591700264443
> > 9%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6
> > Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=o9YVNgadPYcarCZVnIlvv
> > krUlg5DjQ3uVS2Lq8ZxEDk%3D&amp;reserved=0
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> 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://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp;data=05%7C01%7Ckfogel%40dawsoncollege.qc.ca%7C1537e817633e45a93a8208da8bb762e1%7Cb6b66a7afbbb42b8a7c5712342094eef%7C1%7C0%7C637975917002644439%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=o9YVNgadPYcarCZVnIlvvkrUlg5DjQ3uVS2Lq8ZxEDk%3D&amp;reserved=0
>
>
>
>

RE: Copy Paste still an issue

Posted by Eirik Bakke <eb...@ultorg.com>.
Yeah, this still does happen sometimes. The improvement is that it always now seems possible to get out of the broken state without having to restart the IDE.

-- Eirik

-----Original Message-----
From: Scott Palmer <sw...@gmail.com> 
Sent: Monday, December 5, 2022 10:46 PM
To: dev@netbeans.apache.org
Subject: Re: Copy Paste still an issue

I’ve still had to paste into another application sometimes and then copy again to get NB 16 to recognize what I had copied from somewhere else so it would paste that instead of what it had internally. 

Scott

> On Dec 5, 2022, at 9:33 PM, Eirik Bakke <eb...@ultorg.com> wrote:
> 
> Yes, there was a patch here in NetBeans 15 which I think improved the 
> situation a lot. Now you can usually just Ctrl+C again, which so far 
> has always resolved the problem for me. (Instead of restarting the 
> IDE.)
> 
> The patch was https://github.com/apache/netbeans/pull/4774 , which was a follow-up on https://github.com/apache/netbeans/pull/4572 . I kept a diary of cut/paste problems and their resolution for several weeks.
> 
> -- Eirik
> 
> 
> Great! There was a patch in NetBeans 15 that made the copy/paste bug much less of a problem.
> 
> -----Original Message-----
> From: Patrik Karlström <pa...@trixon.se>
> Sent: Monday, December 5, 2022 9:18 AM
> To: dev@netbeans.apache.org
> Subject: Re: Copy Paste still an issue
> 
> There are a couple of threads on this by now and I'm not sure if the following "semi-solution" has been posted.
> 
> A couple of weeks ago the clipboard went bust on me in NB 15.
> I tried a couple of things and I got it working again without restarting NB.
> 
> Today it happened again but this time in NB 16, this gave me a chance to reduce and verify my steps.
> The only thing I needed to do to make the clipboard working again was
> 
> Hit CTRL-X in NB without any selection being made (cut the whole line).
> Perhaps CTRL-C works too.
> 
> Patrik
> 
> 
> Den lör 3 sep. 2022 kl 11:07 skrev Neil C Smith <ne...@apache.org>:
> 
>>> On Fri, 2 Sept 2022 at 18:45, Kenneth Fogel 
>>> <kf...@dawsoncollege.qc.ca>
>>> wrote:
>>> To reproduce try this:
>>> 
>>> Open NB and a project in NB. Open NotePad++ or Word.
>>> Copy just one line of a file from NB to NotePad++ or Word. It should
>> work. Try a few other lines but just a single line at a time.
>>> Now select and copy 20 or so lines from the NB file. **You will not 
>>> be
>> able to paste it**.
>> 
>> It would be easier if it was that easily reproducible!  Are you 
>> saying that you see this every time?  Other people have reported it 
>> happening after some time, some not seeing it.
>> 
>> Can you try setting some thing in netbeans.conf startup properties?
>> 
>> -J-Dorg.netbeans.NbClipboard.level=FINEST
>> 
>> Then check messages.  Anything odd?
>> 
>> Then try adding to that -
>> 
>> -J-Dnetbeans.slow.system.clipboard.hack=false
>> 
>> and
>> 
>> -J-DTopSecurityManager.disable=true
>> 
>> separately - not at the same time.
>> 
>> Do either/both affect the result?
>> 
>> Thanks,
>> 
>> 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
> 
> 
> 

---------------------------------------------------------------------
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: Copy Paste still an issue

Posted by Scott Palmer <sw...@gmail.com>.
I’ve still had to paste into another application sometimes and then copy again to get NB 16 to recognize what I had copied from somewhere else so it would paste that instead of what it had internally. 

Scott

> On Dec 5, 2022, at 9:33 PM, Eirik Bakke <eb...@ultorg.com> wrote:
> 
> Yes, there was a patch here in NetBeans 15 which I think improved the situation a lot. Now you can usually just Ctrl+C again, which so far has always resolved the problem for me. (Instead of restarting the IDE.)
> 
> The patch was https://github.com/apache/netbeans/pull/4774 , which was a follow-up on https://github.com/apache/netbeans/pull/4572 . I kept a diary of cut/paste problems and their resolution for several weeks.
> 
> -- Eirik
> 
> 
> Great! There was a patch in NetBeans 15 that made the copy/paste bug much less of a problem.
> 
> -----Original Message-----
> From: Patrik Karlström <pa...@trixon.se> 
> Sent: Monday, December 5, 2022 9:18 AM
> To: dev@netbeans.apache.org
> Subject: Re: Copy Paste still an issue
> 
> There are a couple of threads on this by now and I'm not sure if the following "semi-solution" has been posted.
> 
> A couple of weeks ago the clipboard went bust on me in NB 15.
> I tried a couple of things and I got it working again without restarting NB.
> 
> Today it happened again but this time in NB 16, this gave me a chance to reduce and verify my steps.
> The only thing I needed to do to make the clipboard working again was
> 
> Hit CTRL-X in NB without any selection being made (cut the whole line).
> Perhaps CTRL-C works too.
> 
> Patrik
> 
> 
> Den lör 3 sep. 2022 kl 11:07 skrev Neil C Smith <ne...@apache.org>:
> 
>>> On Fri, 2 Sept 2022 at 18:45, Kenneth Fogel 
>>> <kf...@dawsoncollege.qc.ca>
>>> wrote:
>>> To reproduce try this:
>>> 
>>> Open NB and a project in NB. Open NotePad++ or Word.
>>> Copy just one line of a file from NB to NotePad++ or Word. It should
>> work. Try a few other lines but just a single line at a time.
>>> Now select and copy 20 or so lines from the NB file. **You will not 
>>> be
>> able to paste it**.
>> 
>> It would be easier if it was that easily reproducible!  Are you saying 
>> that you see this every time?  Other people have reported it happening 
>> after some time, some not seeing it.
>> 
>> Can you try setting some thing in netbeans.conf startup properties?
>> 
>> -J-Dorg.netbeans.NbClipboard.level=FINEST
>> 
>> Then check messages.  Anything odd?
>> 
>> Then try adding to that -
>> 
>> -J-Dnetbeans.slow.system.clipboard.hack=false
>> 
>> and
>> 
>> -J-DTopSecurityManager.disable=true
>> 
>> separately - not at the same time.
>> 
>> Do either/both affect the result?
>> 
>> Thanks,
>> 
>> 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
> 
> 
> 

---------------------------------------------------------------------
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: Copy Paste still an issue

Posted by Eirik Bakke <eb...@ultorg.com>.
Yes, there was a patch here in NetBeans 15 which I think improved the situation a lot. Now you can usually just Ctrl+C again, which so far has always resolved the problem for me. (Instead of restarting the IDE.)

The patch was https://github.com/apache/netbeans/pull/4774 , which was a follow-up on https://github.com/apache/netbeans/pull/4572 . I kept a diary of cut/paste problems and their resolution for several weeks.

-- Eirik


Great! There was a patch in NetBeans 15 that made the copy/paste bug much less of a problem.

-----Original Message-----
From: Patrik Karlström <pa...@trixon.se> 
Sent: Monday, December 5, 2022 9:18 AM
To: dev@netbeans.apache.org
Subject: Re: Copy Paste still an issue

There are a couple of threads on this by now and I'm not sure if the following "semi-solution" has been posted.

A couple of weeks ago the clipboard went bust on me in NB 15.
I tried a couple of things and I got it working again without restarting NB.

Today it happened again but this time in NB 16, this gave me a chance to reduce and verify my steps.
The only thing I needed to do to make the clipboard working again was

Hit CTRL-X in NB without any selection being made (cut the whole line).
Perhaps CTRL-C works too.

Patrik


Den lör 3 sep. 2022 kl 11:07 skrev Neil C Smith <ne...@apache.org>:

> On Fri, 2 Sept 2022 at 18:45, Kenneth Fogel 
> <kf...@dawsoncollege.qc.ca>
> wrote:
> > To reproduce try this:
> >
> > Open NB and a project in NB. Open NotePad++ or Word.
> > Copy just one line of a file from NB to NotePad++ or Word. It should
> work. Try a few other lines but just a single line at a time.
> > Now select and copy 20 or so lines from the NB file. **You will not 
> > be
> able to paste it**.
>
> It would be easier if it was that easily reproducible!  Are you saying 
> that you see this every time?  Other people have reported it happening 
> after some time, some not seeing it.
>
> Can you try setting some thing in netbeans.conf startup properties?
>
> -J-Dorg.netbeans.NbClipboard.level=FINEST
>
> Then check messages.  Anything odd?
>
> Then try adding to that -
>
> -J-Dnetbeans.slow.system.clipboard.hack=false
>
> and
>
> -J-DTopSecurityManager.disable=true
>
> separately - not at the same time.
>
> Do either/both affect the result?
>
> Thanks,
>
> 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: Copy Paste still an issue

Posted by Patrik Karlström <pa...@trixon.se>.
There are a couple of threads on this by now and I'm not sure if the
following "semi-solution" has been posted.

A couple of weeks ago the clipboard went bust on me in NB 15.
I tried a couple of things and I got it working again without restarting NB.

Today it happened again but this time in NB 16, this gave me a chance to
reduce and verify my steps.
The only thing I needed to do to make the clipboard working again was

Hit CTRL-X in NB without any selection being made (cut the whole line).
Perhaps CTRL-C works too.

Patrik


Den lör 3 sep. 2022 kl 11:07 skrev Neil C Smith <ne...@apache.org>:

> On Fri, 2 Sept 2022 at 18:45, Kenneth Fogel <kf...@dawsoncollege.qc.ca>
> wrote:
> > To reproduce try this:
> >
> > Open NB and a project in NB. Open NotePad++ or Word.
> > Copy just one line of a file from NB to NotePad++ or Word. It should
> work. Try a few other lines but just a single line at a time.
> > Now select and copy 20 or so lines from the NB file. **You will not be
> able to paste it**.
>
> It would be easier if it was that easily reproducible!  Are you saying
> that you see this every time?  Other people have reported it happening
> after some time, some not seeing it.
>
> Can you try setting some thing in netbeans.conf startup properties?
>
> -J-Dorg.netbeans.NbClipboard.level=FINEST
>
> Then check messages.  Anything odd?
>
> Then try adding to that -
>
> -J-Dnetbeans.slow.system.clipboard.hack=false
>
> and
>
> -J-DTopSecurityManager.disable=true
>
> separately - not at the same time.
>
> Do either/both affect the result?
>
> Thanks,
>
> 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: Copy Paste still an issue - solution

Posted by Neil C Smith <ne...@apache.org>.
On Mon, 5 Sept 2022 at 17:32, Kenneth Fogel <kf...@dawsoncollege.qc.ca> wrote:
> I just tried -J-Dorg.netbeans.NbClipboard.level=FINEST. It resolved the issue.
...
> PPS: Consider, after suitable testing, making -J-Dorg.netbeans.NbClipboard.level=FINEST a switch in netbeans.cnf by default.

That just controls the logging level!  You're not the first person who
has suggested that enabling finest logging fixes the issue though.

Please try the other two switches as well.

Thanks,

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: Copy Paste still an issue - solution

Posted by Neil C Smith <ne...@apache.org>.
On Tue, 6 Sept 2022 at 11:24, Michael Bien <mb...@gmail.com> wrote:
> The windows launcher is
> implemented differently

Yes, AFAIK .conf is not executed as a shell script there! :-)

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: Copy Paste still an issue - solution

Posted by Michael Bien <mb...@gmail.com>.
On 05.09.22 18:51, Ernie Rael wrote:
> On 9/5/22 9:32 AM, Kenneth Fogel wrote:
>> I just tried -J-Dorg.netbeans.NbClipboard.level=FINEST. It resolved 
>> the issue.
>
> Turning on logging fixes it, the good news and the bad news, sigh. 
> Maybe there's some code that checks the logging level and does things 
> differently, that would be good; better than a timing problem.
>
> -ernie
>
> PS. Does netbeans.conf handles trailing '\' as line continuation?

it should work on linux (potentially mac too). The windows launcher is 
implemented differently and does not support multi line properties in 
the config (would be nice if it would).

-mbien


>
>>
>> Initially I thought it only worked if it was the first switch in the 
>> list but it turns out that was my fault. I added the switch at the 
>> end of the file by pressing Enter to open a blank line in my editor. 
>> In my stupidity I did not notice that I was ending the list of 
>> switches when I pressed Enter. So, for about 20 minutes today I 
>> thought it only worked if it was the first switch. When I recognized 
>> my dumb mistake, all I had to do is add the switch to the list 
>> anywhere by inserting it rather than creating a new line. So far, the 
>> results are consistent.
>>
>> Ken
>>
>> PS: My editor displayed the conf file with word wrap on. This made it 
>> look like most every switch was on its own line and that is why I 
>> used Enter to create a space for the switch.
>>
>> PPS: Consider, after suitable testing, making 
>> -J-Dorg.netbeans.NbClipboard.level=FINEST a switch in netbeans.cnf by 
>> default.
>>
>> -----Original Message-----
>> From: Neil C Smith <ne...@apache.org>
>> Sent: September 3, 2022 5:06 AM
>> To: dev@netbeans.apache.org
>> Subject: Re: Copy Paste still an issue
>>
>> On Fri, 2 Sept 2022 at 18:45, Kenneth Fogel 
>> <kf...@dawsoncollege.qc.ca> wrote:
>>> To reproduce try this:
>>>
>>> Open NB and a project in NB. Open NotePad++ or Word.
>>> Copy just one line of a file from NB to NotePad++ or Word. It should 
>>> work. Try a few other lines but just a single line at a time.
>>> Now select and copy 20 or so lines from the NB file. **You will not 
>>> be able to paste it**.
>> It would be easier if it was that easily reproducible!  Are you 
>> saying that you see this every time?  Other people have reported it 
>> happening after some time, some not seeing it.
>>
>> Can you try setting some thing in netbeans.conf startup properties?
>>
>> -J-Dorg.netbeans.NbClipboard.level=FINEST
>>
>> Then check messages.  Anything odd?
>>
>> Then try adding to that -
>>
>> -J-Dnetbeans.slow.system.clipboard.hack=false
>>
>> and
>>
>> -J-DTopSecurityManager.disable=true
>>
>> separately - not at the same time.
>>
>> Do either/both affect the result?
>>
>> Thanks,
>>
>> 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://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp;data=05%7C01%7Ckfogel%40dawsoncollege.qc.ca%7C9c96f7f1e9184da48ebb08da8d8b9cb0%7Cb6b66a7afbbb42b8a7c5712342094eef%7C1%7C0%7C637977928016322989%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=cfPyK0gYqXesivgFYxsrm7KNVV%2F1tuHPrXrVNWQ%2BVvo%3D&amp;reserved=0 
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>


---------------------------------------------------------------------
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: Copy Paste still an issue - solution

Posted by Neil C Smith <ne...@apache.org>.
On Mon, 5 Sept 2022 at 17:52, Ernie Rael <er...@raelity.com> wrote:
>
> On 9/5/22 9:32 AM, Kenneth Fogel wrote:
> > I just tried -J-Dorg.netbeans.NbClipboard.level=FINEST. It resolved the issue.
>
> Turning on logging fixes it, the good news and the bad news, sigh. Maybe
> there's some code that checks the logging level and does things
> differently, that would be good; better than a timing problem.

Possibly.  There's the call to logFlavors() which extracts all the
clipboard data -
https://github.com/apache/netbeans/blob/master/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L288

Whether either of the other two flags help would probably still be
useful to know.  Obviously without logging enabled now though!

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: Copy Paste still an issue - solution

Posted by Ernie Rael <er...@raelity.com>.
On 9/5/22 9:32 AM, Kenneth Fogel wrote:
> I just tried -J-Dorg.netbeans.NbClipboard.level=FINEST. It resolved the issue.

Turning on logging fixes it, the good news and the bad news, sigh. Maybe 
there's some code that checks the logging level and does things 
differently, that would be good; better than a timing problem.

-ernie

PS. Does netbeans.conf handles trailing '\' as line continuation?

>
> Initially I thought it only worked if it was the first switch in the list but it turns out that was my fault. I added the switch at the end of the file by pressing Enter to open a blank line in my editor. In my stupidity I did not notice that I was ending the list of switches when I pressed Enter. So, for about 20 minutes today I thought it only worked if it was the first switch. When I recognized my dumb mistake, all I had to do is add the switch to the list anywhere by inserting it rather than creating a new line. So far, the results are consistent.
>
> Ken
>
> PS: My editor displayed the conf file with word wrap on. This made it look like most every switch was on its own line and that is why I used Enter to create a space for the switch.
>
> PPS: Consider, after suitable testing, making -J-Dorg.netbeans.NbClipboard.level=FINEST a switch in netbeans.cnf by default.
>
> -----Original Message-----
> From: Neil C Smith <ne...@apache.org>
> Sent: September 3, 2022 5:06 AM
> To: dev@netbeans.apache.org
> Subject: Re: Copy Paste still an issue
>
> On Fri, 2 Sept 2022 at 18:45, Kenneth Fogel <kf...@dawsoncollege.qc.ca> wrote:
>> To reproduce try this:
>>
>> Open NB and a project in NB. Open NotePad++ or Word.
>> Copy just one line of a file from NB to NotePad++ or Word. It should work. Try a few other lines but just a single line at a time.
>> Now select and copy 20 or so lines from the NB file. **You will not be able to paste it**.
> It would be easier if it was that easily reproducible!  Are you saying that you see this every time?  Other people have reported it happening after some time, some not seeing it.
>
> Can you try setting some thing in netbeans.conf startup properties?
>
> -J-Dorg.netbeans.NbClipboard.level=FINEST
>
> Then check messages.  Anything odd?
>
> Then try adding to that -
>
> -J-Dnetbeans.slow.system.clipboard.hack=false
>
> and
>
> -J-DTopSecurityManager.disable=true
>
> separately - not at the same time.
>
> Do either/both affect the result?
>
> Thanks,
>
> 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://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp;data=05%7C01%7Ckfogel%40dawsoncollege.qc.ca%7C9c96f7f1e9184da48ebb08da8d8b9cb0%7Cb6b66a7afbbb42b8a7c5712342094eef%7C1%7C0%7C637977928016322989%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=cfPyK0gYqXesivgFYxsrm7KNVV%2F1tuHPrXrVNWQ%2BVvo%3D&amp;reserved=0
>
>
>
>
> ---------------------------------------------------------------------
> 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: Copy Paste still an issue - solution

Posted by Kenneth Fogel <kf...@dawsoncollege.qc.ca>.
I just tried -J-Dorg.netbeans.NbClipboard.level=FINEST. It resolved the issue.

Initially I thought it only worked if it was the first switch in the list but it turns out that was my fault. I added the switch at the end of the file by pressing Enter to open a blank line in my editor. In my stupidity I did not notice that I was ending the list of switches when I pressed Enter. So, for about 20 minutes today I thought it only worked if it was the first switch. When I recognized my dumb mistake, all I had to do is add the switch to the list anywhere by inserting it rather than creating a new line. So far, the results are consistent. 

Ken

PS: My editor displayed the conf file with word wrap on. This made it look like most every switch was on its own line and that is why I used Enter to create a space for the switch. 

PPS: Consider, after suitable testing, making -J-Dorg.netbeans.NbClipboard.level=FINEST a switch in netbeans.cnf by default.

-----Original Message-----
From: Neil C Smith <ne...@apache.org> 
Sent: September 3, 2022 5:06 AM
To: dev@netbeans.apache.org
Subject: Re: Copy Paste still an issue

On Fri, 2 Sept 2022 at 18:45, Kenneth Fogel <kf...@dawsoncollege.qc.ca> wrote:
> To reproduce try this:
>
> Open NB and a project in NB. Open NotePad++ or Word.
> Copy just one line of a file from NB to NotePad++ or Word. It should work. Try a few other lines but just a single line at a time.
> Now select and copy 20 or so lines from the NB file. **You will not be able to paste it**.

It would be easier if it was that easily reproducible!  Are you saying that you see this every time?  Other people have reported it happening after some time, some not seeing it.

Can you try setting some thing in netbeans.conf startup properties?

-J-Dorg.netbeans.NbClipboard.level=FINEST

Then check messages.  Anything odd?

Then try adding to that -

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

and

-J-DTopSecurityManager.disable=true

separately - not at the same time.

Do either/both affect the result?

Thanks,

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://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp;data=05%7C01%7Ckfogel%40dawsoncollege.qc.ca%7C9c96f7f1e9184da48ebb08da8d8b9cb0%7Cb6b66a7afbbb42b8a7c5712342094eef%7C1%7C0%7C637977928016322989%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=cfPyK0gYqXesivgFYxsrm7KNVV%2F1tuHPrXrVNWQ%2BVvo%3D&amp;reserved=0




---------------------------------------------------------------------
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: Copy Paste still an issue

Posted by Neil C Smith <ne...@apache.org>.
On Fri, 2 Sept 2022 at 18:45, Kenneth Fogel <kf...@dawsoncollege.qc.ca> wrote:
> To reproduce try this:
>
> Open NB and a project in NB. Open NotePad++ or Word.
> Copy just one line of a file from NB to NotePad++ or Word. It should work. Try a few other lines but just a single line at a time.
> Now select and copy 20 or so lines from the NB file. **You will not be able to paste it**.

It would be easier if it was that easily reproducible!  Are you saying
that you see this every time?  Other people have reported it happening
after some time, some not seeing it.

Can you try setting some thing in netbeans.conf startup properties?

-J-Dorg.netbeans.NbClipboard.level=FINEST

Then check messages.  Anything odd?

Then try adding to that -

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

and

-J-DTopSecurityManager.disable=true

separately - not at the same time.

Do either/both affect the result?

Thanks,

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: Copy Paste still an issue

Posted by Kenneth Fogel <kf...@dawsoncollege.qc.ca>.
The problem with copy and paste occurs when I have NetBeans, Microsoft Word, and Notepad++ all open. On a fresh reboot of a Windows system you may be successful copying either to or from NetBeans. However, this has never worked more than twice before it stops. It will not work in both directions although it works fine inside NetBeans. At one time I could copy from NetBeans to NotePad++ and copy from Notepad++ to Word but the ability to copy to Notepad++ is now hit or miss, mostly miss. My trick of doing a Cut in NB and then paste into anything else is also intermittent.


To reproduce try this:

Open NB and a project in NB. Open NotePad++ or Word.
Copy just one line of a file from NB to NotePad++ or Word. It should work. Try a few other lines but just a single line at a time.
Now select and copy 20 or so lines from the NB file. You will not be able to paste it. Go back and just copy a single line that had worked, and it will no longer work.
Try Cut, Paste, and then restore the Cut. This may or may not work. 

The system I use is an i9 w/ 32 Gig and Windows 11. NetBeans is running under Java 17 but this was a problem with earlier versions of Java as well.

Ken





-----Original Message-----
From: Ernie Rael <er...@raelity.com> 
Sent: August 31, 2022 9:13 PM
To: dev@netbeans.apache.org
Subject: Re: Copy Paste still an issue

On 8/31/22 9:15 AM, Scott Palmer wrote:
> It’s an intermittent issue on Windows that has been around for a long time.
>
> Edit the netbeans.conf file in netbeans/etc/ to add:
>   -J-Dorg.netbeans.NbClipboard.level=FINEST
>
> I keep forgetting after installing new versions :-(

FYI, jLogman in the plugin portal, can be installed and does not require a NB restart. Then

 1. Tools>ManageLogging brings up a tree table of the loggers,  2. navigate to org.netbeans.NbClipboard  3. Click in the level column  4. select FINE in the combo box  5. optional: right click anywhere
    navigate/check Configurations > ApplyConfigurationAtStartup
    so the logging is enabled after a NB restart

Of course this only gives information after the fact, so who knows if it would be useful.

Starting logging in netbeans.conf doesn't have a brief gap at startup.

-ernie

>
> That may provide needed details in the logs.
>
> Hopefully we can get this sorted… It’s been a thorn in my side for years.
>
>
> Scott
>
>> On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org> wrote:
>>
>> On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <kf...@dawsoncollege.qc.ca> wrote:
>>> That I am not the only one who comes across this issue leads me to believe it is not a 'just on my machine' problem.
>> It is definitely not just on your machine, but it is also not on 
>> every machine.  The bug linked previously has a bunch of questions 
>> and a link to a previous thread on here with flags and things to test.
>>
>> Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
>>
>> Until someone working on the IDE can reproduce the circumstances of 
>> this issue, I don't see it getting fixed.
>>
>> Best wishes,
>>
>> Neil
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 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://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwi
>> ki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp
>> ;data=05%7C01%7Ckfogel%40dawsoncollege.qc.ca%7C1537e817633e45a93a8208
>> da8bb762e1%7Cb6b66a7afbbb42b8a7c5712342094eef%7C1%7C0%7C6379759170026
>> 44439%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJ
>> BTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=o9YVNgadPYcarCZ
>> VnIlvvkrUlg5DjQ3uVS2Lq8ZxEDk%3D&amp;reserved=0
>>
>>
>>
> ---------------------------------------------------------------------
> 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://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwik
> i.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp;d
> ata=05%7C01%7Ckfogel%40dawsoncollege.qc.ca%7C1537e817633e45a93a8208da8
> bb762e1%7Cb6b66a7afbbb42b8a7c5712342094eef%7C1%7C0%7C63797591700264443
> 9%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6
> Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=o9YVNgadPYcarCZVnIlvv
> krUlg5DjQ3uVS2Lq8ZxEDk%3D&amp;reserved=0
>
>
>
>


---------------------------------------------------------------------
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://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists&amp;data=05%7C01%7Ckfogel%40dawsoncollege.qc.ca%7C1537e817633e45a93a8208da8bb762e1%7Cb6b66a7afbbb42b8a7c5712342094eef%7C1%7C0%7C637975917002644439%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=o9YVNgadPYcarCZVnIlvvkrUlg5DjQ3uVS2Lq8ZxEDk%3D&amp;reserved=0




Re: Copy Paste still an issue

Posted by Ernie Rael <er...@raelity.com>.
On 8/31/22 9:15 AM, Scott Palmer wrote:
> It’s an intermittent issue on Windows that has been around for a long time.
>
> Edit the netbeans.conf file in netbeans/etc/ to add:
>   -J-Dorg.netbeans.NbClipboard.level=FINEST
>
> I keep forgetting after installing new versions :-(

FYI, jLogman in the plugin portal, can be installed and does not require 
a NB restart. Then

 1. Tools>ManageLogging brings up a tree table of the loggers,
 2. navigate to org.netbeans.NbClipboard
 3. Click in the level column
 4. select FINE in the combo box
 5. optional: right click anywhere
    navigate/check Configurations > ApplyConfigurationAtStartup
    so the logging is enabled after a NB restart

Of course this only gives information after the fact, so who knows if it 
would be useful.

Starting logging in netbeans.conf doesn't have a brief gap at startup.

-ernie

>
> That may provide needed details in the logs.
>
> Hopefully we can get this sorted… It’s been a thorn in my side for years.
>
>
> Scott
>
>> On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org> wrote:
>>
>> On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <kf...@dawsoncollege.qc.ca> wrote:
>>> That I am not the only one who comes across this issue leads me to believe it is not a 'just on my machine' problem.
>> It is definitely not just on your machine, but it is also not on every
>> machine.  The bug linked previously has a bunch of questions and a
>> link to a previous thread on here with flags and things to test.
>>
>> Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
>>
>> Until someone working on the IDE can reproduce the circumstances of
>> this issue, I don't see it getting fixed.
>>
>> Best wishes,
>>
>> Neil
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 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
>
>
>
>


---------------------------------------------------------------------
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: AW: Copy Paste still an issue

Posted by Ernie Rael <er...@raelity.com>.
On 8/31/22 11:14 AM, Christian Lenz wrote:
> I’m using Windows but can someone please give an exact reproducable case, where I can test it on my machine to test the PR too?

The bug report that Neil referenced

    Please follow up on https://github.com/apache/netbeans/issues/3962 too.

Claims to have a reproducable case

-ernie

>
>
> Cheers
>
> Chris
>
> Von: László Kishalmi
> Gesendet: Mittwoch, 31. August 2022 20:05
> An:dev@netbeans.apache.org
> Betreff: Re: Copy Paste still an issue
>
> Well, I'm lucky enough not having Windows around.
> Though it seems we did a lot of hacks around the clipboard in the early
> ages, in order to work around AWT/Native clipboard issues.
> There are a chance that the AWT/Native situation has improved over the
> years and our hacks become a source of nasty bugs.
>
> My suspect would be:
> https://github.com/apache/netbeans/blob/a8f7024d72051006c124489430a961afbcdf346a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L344
>
> Well someone brave enough having Clipboard issues on Windows might try this
> one:
> https://github.com/apache/netbeans/pull/4572
>
>
>
> On Wed, Aug 31, 2022 at 9:16 AM Scott Palmer<sw...@gmail.com>  wrote:
>
>> It’s an intermittent issue on Windows that has been around for a long time.
>>
>> Edit the netbeans.conf file in netbeans/etc/ to add:
>>   -J-Dorg.netbeans.NbClipboard.level=FINEST
>>
>> I keep forgetting after installing new versions :-(
>>
>> That may provide needed details in the logs.
>>
>> Hopefully we can get this sorted… It’s been a thorn in my side for years.
>>
>>
>> Scott
>>
>>> On Aug 31, 2022, at 11:13 AM, Neil C Smith<ne...@apache.org>
>> wrote:
>>> On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel<kf...@dawsoncollege.qc.ca>
>> wrote:
>>>> That I am not the only one who comes across this issue leads me to
>> believe it is not a 'just on my machine' problem.
>>> It is definitely not just on your machine, but it is also not on every
>>> machine.  The bug linked previously has a bunch of questions and a
>>> link to a previous thread on here with flags and things to test.
>>>
>>> Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
>>>
>>> Until someone working on the IDE can reproduce the circumstances of
>>> this issue, I don't see it getting fixed.
>>>
>>> Best wishes,
>>>
>>> Neil
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: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: Copy Paste still an issue

Posted by Neil C Smith <ne...@apache.org>.
On Wed, 31 Aug 2022 at 23:14, László Kishalmi <la...@gmail.com> wrote:
> If someone is more brave can add the following option to NetBeans right now:
> That would turn off the NetBeans Clipboard hacks, including the part of the
> code mentioned in my PR.
>
> -J-Dnetbeans.slow.system.clipboard.hack=false

The issue I linked then links to an older thread here
https://lists.apache.org/thread/xqkwy4wxylmzprxl1wko301hlqz59r7d
(which also links to an older bug at
https://bz.apache.org/netbeans//show_bug.cgi?id=41098 )

That setting is worth checking, but Scott had mentioned previously
that this didn't resolve the issue.  Still worth others trying.

For something wider reaching, might also be interesting to try with

-J-DTopSecurityManager.disable=true

I think that will bypass all the clipboard changes
https://github.com/apache/netbeans/blob/master/platform/o.n.core/src/org/netbeans/core/NbLifecycleManager.java#L67
although obviously with other effects.

The PR to remove use of TopSecurityManager at
https://github.com/apache/netbeans/pull/3386 currently removes the
setting of the clipboard too.

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: Copy Paste still an issue

Posted by László Kishalmi <la...@gmail.com>.
If someone is more brave can add the following option to NetBeans right now:
That would turn off the NetBeans Clipboard hacks, including the part of the
code mentioned in my PR.

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

On Wed, Aug 31, 2022 at 1:55 PM Scott Palmer <sw...@gmail.com> wrote:

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

Posted by Scott Palmer <sw...@gmail.com>.
No Docker, No containers.  Just a normal Windows install running directly
on a Windows PC/laptop. The problem is intermittent and reported by many.
I am not convinced that it isn't a general problem for all Windows users,
most cut and paste happens entirely within the IDE after all - that always
works. It's only pasting to or from an external app that has an issue -
sometimes.  When it happens, it continues to happen until a copy is made
from a non-editor window within NetBeans, e.g. the About dialog, or
NetBeans is restarted.  When it doesn't happen, no amount of repeated
copy/paste will trigger it on-demand.  It sneaks up on you.  I usually have
Nb running for many days at a time... then every so often I will try to
copy something to an email, or from a web page or terminal and suddenly
it's not working.

I'm going to try Laszlo's patch, though it will take running for a
long time to have confidence that the problem isn't there.


Scott


On Wed, Aug 31, 2022 at 2:46 PM Peter Blemel <pb...@hotmail.com> wrote:

>
> If I may chime in, if the JRE/JDK and NetBeans are the same and the
> problem isn't reproducible then I would suggest first determining what
> might be different between this user's environment and others where the
> problem doesn't present itself. For example, confirming that this user's
> NetBeans isn't inside of a container like Docker or AppImage that might be
> sitting between the Windows clipboard <-> NetBeans and preventing clipboard
> transfers as part of some sort of security policy.  This may not be the
> case, but it seems like a suspect to eliminate in any case.
>
> Regards,
> Peter
>
> ________________________________
> From: László Kishalmi <la...@gmail.com>
> Sent: Wednesday, August 31, 2022 12:23 PM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>
> Subject: Re: Copy Paste still an issue
>
> Well, it is ok to test it even if you do not have clipboard issues. Just to
> make sure it does not make Windows Clipboard usability worse.
>
> Also as this is a platform code, tests NetBeans running on JDK 8 are
> welcome as well.
>
> On Wed, Aug 31, 2022 at 11:15 AM Christian Lenz <ch...@gmx.net>
> wrote:
>
> > I’m using Windows but can someone please give an exact reproducable case,
> > where I can test it on my machine to test the PR too?
> >
> >
> > Cheers
> >
> > Chris
> >
> > Von: László Kishalmi
> > Gesendet: Mittwoch, 31. August 2022 20:05
> > An: dev@netbeans.apache.org
> > Betreff: Re: Copy Paste still an issue
> >
> > Well, I'm lucky enough not having Windows around.
> > Though it seems we did a lot of hacks around the clipboard in the early
> > ages, in order to work around AWT/Native clipboard issues.
> > There are a chance that the AWT/Native situation has improved over the
> > years and our hacks become a source of nasty bugs.
> >
> > My suspect would be:
> >
> >
> https://github.com/apache/netbeans/blob/a8f7024d72051006c124489430a961afbcdf346a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L344
> >
> > Well someone brave enough having Clipboard issues on Windows might try
> this
> > one:
> > https://github.com/apache/netbeans/pull/4572
> >
> >
> >
> > On Wed, Aug 31, 2022 at 9:16 AM Scott Palmer <sw...@gmail.com> wrote:
> >
> > > It’s an intermittent issue on Windows that has been around for a long
> > time.
> > >
> > > Edit the netbeans.conf file in netbeans/etc/ to add:
> > >  -J-Dorg.netbeans.NbClipboard.level=FINEST
> > >
> > > I keep forgetting after installing new versions :-(
> > >
> > > That may provide needed details in the logs.
> > >
> > > Hopefully we can get this sorted… It’s been a thorn in my side for
> years.
> > >
> > >
> > > Scott
> > >
> > > > On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org>
> > > wrote:
> > > >
> > > > On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <
> > kfogel@dawsoncollege.qc.ca>
> > > wrote:
> > > >> That I am not the only one who comes across this issue leads me to
> > > believe it is not a 'just on my machine' problem.
> > > >
> > > > It is definitely not just on your machine, but it is also not on
> every
> > > > machine.  The bug linked previously has a bunch of questions and a
> > > > link to a previous thread on here with flags and things to test.
> > > >
> > > > Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
> > > >
> > > > Until someone working on the IDE can reproduce the circumstances of
> > > > this issue, I don't see it getting fixed.
> > > >
> > > > Best wishes,
> > > >
> > > > Neil
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: 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: Copy Paste still an issue

Posted by Scott Palmer <sw...@gmail.com>.
On Wed, Aug 31, 2022 at 2:46 PM Peter Blemel <pb...@hotmail.com> wrote:

>
> If I may chime in, if the JRE/JDK and NetBeans are the same and the
> problem isn't reproducible then I would suggest first determining what
> might be different between this user's environment and others where the
> problem doesn't present itself. For example, confirming that this user's
> NetBeans isn't inside of a container like Docker or AppImage that might be
> sitting between the Windows clipboard <-> NetBeans and preventing clipboard
> transfers as part of some sort of security policy.  This may not be the
> case, but it seems like a suspect to eliminate in any case.
>
> Regards,
> Peter
>
> ________________________________
> From: László Kishalmi <la...@gmail.com>
> Sent: Wednesday, August 31, 2022 12:23 PM
> To: dev@netbeans.apache.org <de...@netbeans.apache.org>
> Subject: Re: Copy Paste still an issue
>
> Well, it is ok to test it even if you do not have clipboard issues. Just to
> make sure it does not make Windows Clipboard usability worse.
>
> Also as this is a platform code, tests NetBeans running on JDK 8 are
> welcome as well.
>
> On Wed, Aug 31, 2022 at 11:15 AM Christian Lenz <ch...@gmx.net>
> wrote:
>
> > I’m using Windows but can someone please give an exact reproducable case,
> > where I can test it on my machine to test the PR too?
> >
> >
> > Cheers
> >
> > Chris
> >
> > Von: László Kishalmi
> > Gesendet: Mittwoch, 31. August 2022 20:05
> > An: dev@netbeans.apache.org
> > Betreff: Re: Copy Paste still an issue
> >
> > Well, I'm lucky enough not having Windows around.
> > Though it seems we did a lot of hacks around the clipboard in the early
> > ages, in order to work around AWT/Native clipboard issues.
> > There are a chance that the AWT/Native situation has improved over the
> > years and our hacks become a source of nasty bugs.
> >
> > My suspect would be:
> >
> >
> https://github.com/apache/netbeans/blob/a8f7024d72051006c124489430a961afbcdf346a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L344
> >
> > Well someone brave enough having Clipboard issues on Windows might try
> this
> > one:
> > https://github.com/apache/netbeans/pull/4572
> >
> >
> >
> > On Wed, Aug 31, 2022 at 9:16 AM Scott Palmer <sw...@gmail.com> wrote:
> >
> > > It’s an intermittent issue on Windows that has been around for a long
> > time.
> > >
> > > Edit the netbeans.conf file in netbeans/etc/ to add:
> > >  -J-Dorg.netbeans.NbClipboard.level=FINEST
> > >
> > > I keep forgetting after installing new versions :-(
> > >
> > > That may provide needed details in the logs.
> > >
> > > Hopefully we can get this sorted… It’s been a thorn in my side for
> years.
> > >
> > >
> > > Scott
> > >
> > > > On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org>
> > > wrote:
> > > >
> > > > On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <
> > kfogel@dawsoncollege.qc.ca>
> > > wrote:
> > > >> That I am not the only one who comes across this issue leads me to
> > > believe it is not a 'just on my machine' problem.
> > > >
> > > > It is definitely not just on your machine, but it is also not on
> every
> > > > machine.  The bug linked previously has a bunch of questions and a
> > > > link to a previous thread on here with flags and things to test.
> > > >
> > > > Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
> > > >
> > > > Until someone working on the IDE can reproduce the circumstances of
> > > > this issue, I don't see it getting fixed.
> > > >
> > > > Best wishes,
> > > >
> > > > Neil
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: 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: Copy Paste still an issue

Posted by Peter Blemel <pb...@hotmail.com>.
If I may chime in, if the JRE/JDK and NetBeans are the same and the problem isn't reproducible then I would suggest first determining what might be different between this user's environment and others where the problem doesn't present itself. For example, confirming that this user's NetBeans isn't inside of a container like Docker or AppImage that might be sitting between the Windows clipboard <-> NetBeans and preventing clipboard transfers as part of some sort of security policy.  This may not be the case, but it seems like a suspect to eliminate in any case.

Regards,
Peter

________________________________
From: László Kishalmi <la...@gmail.com>
Sent: Wednesday, August 31, 2022 12:23 PM
To: dev@netbeans.apache.org <de...@netbeans.apache.org>
Subject: Re: Copy Paste still an issue

Well, it is ok to test it even if you do not have clipboard issues. Just to
make sure it does not make Windows Clipboard usability worse.

Also as this is a platform code, tests NetBeans running on JDK 8 are
welcome as well.

On Wed, Aug 31, 2022 at 11:15 AM Christian Lenz <ch...@gmx.net>
wrote:

> I’m using Windows but can someone please give an exact reproducable case,
> where I can test it on my machine to test the PR too?
>
>
> Cheers
>
> Chris
>
> Von: László Kishalmi
> Gesendet: Mittwoch, 31. August 2022 20:05
> An: dev@netbeans.apache.org
> Betreff: Re: Copy Paste still an issue
>
> Well, I'm lucky enough not having Windows around.
> Though it seems we did a lot of hacks around the clipboard in the early
> ages, in order to work around AWT/Native clipboard issues.
> There are a chance that the AWT/Native situation has improved over the
> years and our hacks become a source of nasty bugs.
>
> My suspect would be:
>
> https://github.com/apache/netbeans/blob/a8f7024d72051006c124489430a961afbcdf346a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L344
>
> Well someone brave enough having Clipboard issues on Windows might try this
> one:
> https://github.com/apache/netbeans/pull/4572
>
>
>
> On Wed, Aug 31, 2022 at 9:16 AM Scott Palmer <sw...@gmail.com> wrote:
>
> > It’s an intermittent issue on Windows that has been around for a long
> time.
> >
> > Edit the netbeans.conf file in netbeans/etc/ to add:
> >  -J-Dorg.netbeans.NbClipboard.level=FINEST
> >
> > I keep forgetting after installing new versions :-(
> >
> > That may provide needed details in the logs.
> >
> > Hopefully we can get this sorted… It’s been a thorn in my side for years.
> >
> >
> > Scott
> >
> > > On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org>
> > wrote:
> > >
> > > On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <
> kfogel@dawsoncollege.qc.ca>
> > wrote:
> > >> That I am not the only one who comes across this issue leads me to
> > believe it is not a 'just on my machine' problem.
> > >
> > > It is definitely not just on your machine, but it is also not on every
> > > machine.  The bug linked previously has a bunch of questions and a
> > > link to a previous thread on here with flags and things to test.
> > >
> > > Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
> > >
> > > Until someone working on the IDE can reproduce the circumstances of
> > > this issue, I don't see it getting fixed.
> > >
> > > Best wishes,
> > >
> > > Neil
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: 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: Copy Paste still an issue

Posted by László Kishalmi <la...@gmail.com>.
Well, it is ok to test it even if you do not have clipboard issues. Just to
make sure it does not make Windows Clipboard usability worse.

Also as this is a platform code, tests NetBeans running on JDK 8 are
welcome as well.

On Wed, Aug 31, 2022 at 11:15 AM Christian Lenz <ch...@gmx.net>
wrote:

> I’m using Windows but can someone please give an exact reproducable case,
> where I can test it on my machine to test the PR too?
>
>
> Cheers
>
> Chris
>
> Von: László Kishalmi
> Gesendet: Mittwoch, 31. August 2022 20:05
> An: dev@netbeans.apache.org
> Betreff: Re: Copy Paste still an issue
>
> Well, I'm lucky enough not having Windows around.
> Though it seems we did a lot of hacks around the clipboard in the early
> ages, in order to work around AWT/Native clipboard issues.
> There are a chance that the AWT/Native situation has improved over the
> years and our hacks become a source of nasty bugs.
>
> My suspect would be:
>
> https://github.com/apache/netbeans/blob/a8f7024d72051006c124489430a961afbcdf346a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L344
>
> Well someone brave enough having Clipboard issues on Windows might try this
> one:
> https://github.com/apache/netbeans/pull/4572
>
>
>
> On Wed, Aug 31, 2022 at 9:16 AM Scott Palmer <sw...@gmail.com> wrote:
>
> > It’s an intermittent issue on Windows that has been around for a long
> time.
> >
> > Edit the netbeans.conf file in netbeans/etc/ to add:
> >  -J-Dorg.netbeans.NbClipboard.level=FINEST
> >
> > I keep forgetting after installing new versions :-(
> >
> > That may provide needed details in the logs.
> >
> > Hopefully we can get this sorted… It’s been a thorn in my side for years.
> >
> >
> > Scott
> >
> > > On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org>
> > wrote:
> > >
> > > On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <
> kfogel@dawsoncollege.qc.ca>
> > wrote:
> > >> That I am not the only one who comes across this issue leads me to
> > believe it is not a 'just on my machine' problem.
> > >
> > > It is definitely not just on your machine, but it is also not on every
> > > machine.  The bug linked previously has a bunch of questions and a
> > > link to a previous thread on here with flags and things to test.
> > >
> > > Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
> > >
> > > Until someone working on the IDE can reproduce the circumstances of
> > > this issue, I don't see it getting fixed.
> > >
> > > Best wishes,
> > >
> > > Neil
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: 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
> >
> >
> >
> >
>
>

AW: Copy Paste still an issue

Posted by Christian Lenz <ch...@gmx.net>.
I’m using Windows but can someone please give an exact reproducable case, where I can test it on my machine to test the PR too?


Cheers

Chris

Von: László Kishalmi
Gesendet: Mittwoch, 31. August 2022 20:05
An: dev@netbeans.apache.org
Betreff: Re: Copy Paste still an issue

Well, I'm lucky enough not having Windows around.
Though it seems we did a lot of hacks around the clipboard in the early
ages, in order to work around AWT/Native clipboard issues.
There are a chance that the AWT/Native situation has improved over the
years and our hacks become a source of nasty bugs.

My suspect would be:
https://github.com/apache/netbeans/blob/a8f7024d72051006c124489430a961afbcdf346a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L344

Well someone brave enough having Clipboard issues on Windows might try this
one:
https://github.com/apache/netbeans/pull/4572



On Wed, Aug 31, 2022 at 9:16 AM Scott Palmer <sw...@gmail.com> wrote:

> It’s an intermittent issue on Windows that has been around for a long time.
>
> Edit the netbeans.conf file in netbeans/etc/ to add:
>  -J-Dorg.netbeans.NbClipboard.level=FINEST
>
> I keep forgetting after installing new versions :-(
>
> That may provide needed details in the logs.
>
> Hopefully we can get this sorted… It’s been a thorn in my side for years.
>
>
> Scott
>
> > On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org>
> wrote:
> >
> > On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <kf...@dawsoncollege.qc.ca>
> wrote:
> >> That I am not the only one who comes across this issue leads me to
> believe it is not a 'just on my machine' problem.
> >
> > It is definitely not just on your machine, but it is also not on every
> > machine.  The bug linked previously has a bunch of questions and a
> > link to a previous thread on here with flags and things to test.
> >
> > Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
> >
> > Until someone working on the IDE can reproduce the circumstances of
> > this issue, I don't see it getting fixed.
> >
> > Best wishes,
> >
> > Neil
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 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: Copy Paste still an issue

Posted by László Kishalmi <la...@gmail.com>.
Well, I'm lucky enough not having Windows around.
Though it seems we did a lot of hacks around the clipboard in the early
ages, in order to work around AWT/Native clipboard issues.
There are a chance that the AWT/Native situation has improved over the
years and our hacks become a source of nasty bugs.

My suspect would be:
https://github.com/apache/netbeans/blob/a8f7024d72051006c124489430a961afbcdf346a/platform/o.n.bootstrap/src/org/netbeans/NbClipboard.java#L344

Well someone brave enough having Clipboard issues on Windows might try this
one:
https://github.com/apache/netbeans/pull/4572



On Wed, Aug 31, 2022 at 9:16 AM Scott Palmer <sw...@gmail.com> wrote:

> It’s an intermittent issue on Windows that has been around for a long time.
>
> Edit the netbeans.conf file in netbeans/etc/ to add:
>  -J-Dorg.netbeans.NbClipboard.level=FINEST
>
> I keep forgetting after installing new versions :-(
>
> That may provide needed details in the logs.
>
> Hopefully we can get this sorted… It’s been a thorn in my side for years.
>
>
> Scott
>
> > On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org>
> wrote:
> >
> > On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <kf...@dawsoncollege.qc.ca>
> wrote:
> >> That I am not the only one who comes across this issue leads me to
> believe it is not a 'just on my machine' problem.
> >
> > It is definitely not just on your machine, but it is also not on every
> > machine.  The bug linked previously has a bunch of questions and a
> > link to a previous thread on here with flags and things to test.
> >
> > Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
> >
> > Until someone working on the IDE can reproduce the circumstances of
> > this issue, I don't see it getting fixed.
> >
> > Best wishes,
> >
> > Neil
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 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: Copy Paste still an issue

Posted by Scott Palmer <sw...@gmail.com>.
It’s an intermittent issue on Windows that has been around for a long time.

Edit the netbeans.conf file in netbeans/etc/ to add:
 -J-Dorg.netbeans.NbClipboard.level=FINEST

I keep forgetting after installing new versions :-(

That may provide needed details in the logs.

Hopefully we can get this sorted… It’s been a thorn in my side for years.


Scott

> On Aug 31, 2022, at 11:13 AM, Neil C Smith <ne...@apache.org> wrote:
> 
> On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <kf...@dawsoncollege.qc.ca> wrote:
>> That I am not the only one who comes across this issue leads me to believe it is not a 'just on my machine' problem.
> 
> It is definitely not just on your machine, but it is also not on every
> machine.  The bug linked previously has a bunch of questions and a
> link to a previous thread on here with flags and things to test.
> 
> Out of interest, what shows with CTRL_SHIFT-D (paste from history)?
> 
> Until someone working on the IDE can reproduce the circumstances of
> this issue, I don't see it getting fixed.
> 
> Best wishes,
> 
> Neil
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 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: Copy Paste still an issue

Posted by Neil C Smith <ne...@apache.org>.
On Wed, 31 Aug 2022 at 15:51, Kenneth Fogel <kf...@dawsoncollege.qc.ca> wrote:
> That I am not the only one who comes across this issue leads me to believe it is not a 'just on my machine' problem.

It is definitely not just on your machine, but it is also not on every
machine.  The bug linked previously has a bunch of questions and a
link to a previous thread on here with flags and things to test.

Out of interest, what shows with CTRL_SHIFT-D (paste from history)?

Until someone working on the IDE can reproduce the circumstances of
this issue, I don't see it getting fixed.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: 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: Copy Paste still an issue

Posted by Kenneth Fogel <kf...@dawsoncollege.qc.ca>.
And now I notice that I cannot paste from Word into NetBeans. I usually write code with NetBeans and then paste it in a Word doc but just now I wanted to paste some code I wrote in Word into NetBeans. It does not work and even using Cut does not make a difference. That I am not the only one who comes across this issue leads me to believe it is not a 'just on my machine' problem.

This all makes using NetBeans in the book I am writing more difficult than it needs to be. 

Ken


-----Original Message-----
From: Kenneth Fogel <kf...@dawsoncollege.qc.ca> 
Sent: August 30, 2022 1:34 PM
To: dev@netbeans.apache.org
Subject: Copy Paste still an issue

NetBeans 15 continues to give me trouble with copy and paste in Windows 11. A plain copy only works inside NetBeans. Attempts to paste into Word or Notepad++ do not work and nothing shows as available to paste if the source was NetBeans. I have learned that Cut works so now I Ctrl-X and then immediately do Ctrl-Z to restore the text in NetBeans. I can now paste the text anywhere.

Ken


---------------------------------------------------------------------
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: Copy Paste still an issue

Posted by Ranjith Kode <ra...@ifs.com.INVALID>.
+1

Attempts to copy from an external source (Outlook/Word/Web-page) and paste into NetBeans also do not work at times.

-----Original Message-----
From: Kenneth Fogel <kf...@dawsoncollege.qc.ca>
Sent: den 30 augusti 2022 19:34
To: dev@netbeans.apache.org
Subject: Copy Paste still an issue

WARNING: This email originated from outside of IFS. DO NOT click links or open attachments unless you recognize the sender and know the content is safe.


NetBeans 15 continues to give me trouble with copy and paste in Windows 11. A plain copy only works inside NetBeans. Attempts to paste into Word or Notepad++ do not work and nothing shows as available to paste if the source was NetBeans. I have learned that Cut works so now I Ctrl-X and then immediately do Ctrl-Z to restore the text in NetBeans. I can now paste the text anywhere.

Ken

________________________________
Confidentiality notice and disclaimer
This e-mail is private and may contain confidential information. You must not use, disclose, or retain any of its content if you have received it in error: please notify its sender and then delete it. Any views or opinions expressed in this e-mail are strictly those of its author. We do not accept liability for the consequences of any data corruption, interception, tampering, or virus.

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