Re: Windows 11 Issues - Copy/Paste Failure

2023-09-04 Thread Jean-Marc Borer
Before NB 12.5 Java 8 was required, After NB started using Java 9 (11?).
That is the only difference I can think of, and yes I got this issue
regularly on my Win 10 with all NB from 12.5.

On Wed, Aug 30, 2023 at 11:00 PM Eric Bresie  wrote:

> Could the reproduction inconsistency be due to the configuration of the
> machine?
>
> Maybe should start characterizing with details like:
>
> - OS (Windows/Version,Linux/Distribution/Version, MacOS/version)
> - Java version
> - Screen configurations (resolution, HD, etc. - I suggest this because in a
> separate issue there was indication that when copying from Netbeans that it
> keyed by pixels which was wonky in HD configuration)
> - Netbeans version
> - Netbeans flags in use
>
> Etc..
>
>
> On Wed, Aug 30, 2023 at 5:46 PM Eirik Bakke  wrote:
>
> > Oh, that's a beautifully written test! I ran it a few times and with 25
> > iterations but it didn't exhibit the bug, though. I left a comment
> > reporting my results and will run the test again the next time I observe
> > the bug in the wild.
> >
> > -- Eirik
> >
> > -Original Message-
> > From: Neil C Smith 
> > Sent: Wednesday, August 30, 2023 11:11 AM
> > To: dev@netbeans.apache.org
> > Subject: Re: Windows 11 Issues - Copy/Paste Failure
> >
> > On Wed, 30 Aug 2023 at 06:26, Eirik Bakke  wrote:
> > > But the problem remains, and I was never able to reproduce it
> > reliably--it was always intermittent.
> > >
> > > If anyone can manage to reliably reproduce the bug, that would probably
> > go a long way towards finding a fix.
> >
> > Have you tried the robot-based test on the issue at
> > https://github.com/apache/netbeans/issues/3962#issuecomment-1664507172
> > ?
> >
> > 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: Windows 11 Issues - Copy/Paste Failure

2023-08-30 Thread Eric Bresie
Could the reproduction inconsistency be due to the configuration of the
machine?

Maybe should start characterizing with details like:

- OS (Windows/Version,Linux/Distribution/Version, MacOS/version)
- Java version
- Screen configurations (resolution, HD, etc. - I suggest this because in a
separate issue there was indication that when copying from Netbeans that it
keyed by pixels which was wonky in HD configuration)
- Netbeans version
- Netbeans flags in use

Etc..


On Wed, Aug 30, 2023 at 5:46 PM Eirik Bakke  wrote:

> Oh, that's a beautifully written test! I ran it a few times and with 25
> iterations but it didn't exhibit the bug, though. I left a comment
> reporting my results and will run the test again the next time I observe
> the bug in the wild.
>
> -- Eirik
>
> -Original Message-
> From: Neil C Smith 
> Sent: Wednesday, August 30, 2023 11:11 AM
> To: dev@netbeans.apache.org
> Subject: Re: Windows 11 Issues - Copy/Paste Failure
>
> On Wed, 30 Aug 2023 at 06:26, Eirik Bakke  wrote:
> > But the problem remains, and I was never able to reproduce it
> reliably--it was always intermittent.
> >
> > If anyone can manage to reliably reproduce the bug, that would probably
> go a long way towards finding a fix.
>
> Have you tried the robot-based test on the issue at
> https://github.com/apache/netbeans/issues/3962#issuecomment-1664507172
> ?
>
> 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: Windows 11 Issues - Copy/Paste Failure

2023-08-30 Thread Eirik Bakke
Oh, that's a beautifully written test! I ran it a few times and with 25 
iterations but it didn't exhibit the bug, though. I left a comment reporting my 
results and will run the test again the next time I observe the bug in the wild.

-- Eirik

-Original Message-
From: Neil C Smith  
Sent: Wednesday, August 30, 2023 11:11 AM
To: dev@netbeans.apache.org
Subject: Re: Windows 11 Issues - Copy/Paste Failure

On Wed, 30 Aug 2023 at 06:26, Eirik Bakke  wrote:
> But the problem remains, and I was never able to reproduce it reliably--it 
> was always intermittent.
>
> If anyone can manage to reliably reproduce the bug, that would probably go a 
> long way towards finding a fix.

Have you tried the robot-based test on the issue at
https://github.com/apache/netbeans/issues/3962#issuecomment-1664507172
?

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: Windows 11 Issues - Copy/Paste Failure

2023-08-30 Thread Neil C Smith
On Wed, 30 Aug 2023 at 06:26, Eirik Bakke  wrote:
> But the problem remains, and I was never able to reproduce it reliably--it 
> was always intermittent.
>
> If anyone can manage to reliably reproduce the bug, that would probably go a 
> long way towards finding a fix.

Have you tried the robot-based test on the issue at
https://github.com/apache/netbeans/issues/3962#issuecomment-1664507172
?

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: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Eirik Bakke
Some more discussions of the issue are here:

https://github.com/apache/netbeans/pull/4572
https://github.com/apache/netbeans/pull/4774

The latter PR from a year ago improved the situation a bit, as it made it 
possible to work around the issue by fiddling with Copy/Paste in NetBeans a few 
times, rather than by restarting the entire IDE. But the problem remains, and I 
was never able to reproduce it reliably--it was always intermittent.

If anyone can manage to reliably reproduce the bug, that would probably go a 
long way towards finding a fix. 

(I would not be surprised if the bug requires specific other applications to be 
running at the same time. On my own computer, for instance, I always have Excel 
and jEdit open, as well as another NetBeans Platform application.)

-- Eirik

-Original Message-
From: Ernie Rael  
Sent: Wednesday, August 30, 2023 4:11 AM
To: dev@netbeans.apache.org
Subject: Re: Windows 11 Issues - Copy/Paste Failure

I too used windows for several years (linux now, it's wonderful and no more 
cygwin), I don't recall having seen this issue. But I use jVi which has it's 
own cut/paste handling that behaves like vim's (there's even a flavor so 
blockmode copy/paste works between vim/jVi). Otherwise clipboard interfacing is 
as simple as can be.

My experience would support legacy/ancient code being involved.

-ernie


On 23/08/29 6:57 AM, Scott Palmer wrote:
> The last time I looked into it, there seemed to be some workarounds in 
> NetBeans for ancient Swing clipboard issues that probably don't apply 
> anymore.  I think NB is doing something weird with the clipboard.
>
> I'm primarily developing on Linux now, so I'm spared from this issue.  
> But when I worked on Windows it happened all the time.  It was a 
> weekly annoyance.
>
> Scott
>
>
> On Tue, Aug 29, 2023 at 6:03 AM Neil C Smith  wrote:
>
>> On Tue, 29 Aug 2023 at 01:14, Michael Bien  wrote:
>>> On 29.08.23 00:50, Kenneth Fogel wrote:
>>>> I have mentioned this before, but the situation is getting worse. 
>>>> More
>> often than not, I must cut the text, paste the text
>>> this issue is tracked here:
>> https://github.com/apache/netbeans/issues/3962
>>>> I do have a question. How many people actively working on NetBeans 
>>>> do
>> this in a Windows rather than Linux or MacOS operating system?
>>> I believe most NB maintainers are indeed not using windows as their 
>>> primary OS, those who are might not be able to reproduce it given 
>>> that it shows some symptoms of a race condition (but it could be 
>>> something
>> else).
>>
>> It's not just about who is working on Windows, either, but whether 
>> they can reproduce the problem.  While my primary development 
>> platform is Ubuntu, I've got development and testing machines on 
>> Windows and macOS.  I've tried multiple times to reproduce this, 
>> including using the automated test in that issue (Ken, please look at 
>> that too).  My system simply never shows the problem.
>>
>> I think Michael is right to suggest a race condition is in play here.
>> That enabling fine logging mitigates the issue for many would suggest 
>> timing.  However, the logging also has side effects, which eagerly 
>> acquires the data in the clipboard, which could also be affecting the 
>> outcome.
>>
>> Also, let's not assume that this is unique to NetBeans or even a bug 
>> in NetBeans itself!  https://youtrack.jetbrains.com/issue/JBR-5980/
>>
>> 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: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Ernie Rael
I too used windows for several years (linux now, it's wonderful and no 
more cygwin), I don't recall having seen this issue. But I use jVi which 
has it's own cut/paste handling that behaves like vim's (there's even a 
flavor so blockmode copy/paste works between vim/jVi). Otherwise 
clipboard interfacing is as simple as can be.


My experience would support legacy/ancient code being involved.

-ernie


On 23/08/29 6:57 AM, Scott Palmer wrote:

The last time I looked into it, there seemed to be some workarounds in
NetBeans for ancient Swing clipboard issues that probably don't apply
anymore.  I think NB is doing something weird with the clipboard.

I'm primarily developing on Linux now, so I'm spared from this issue.  But
when I worked on Windows it happened all the time.  It was a weekly
annoyance.

Scott


On Tue, Aug 29, 2023 at 6:03 AM Neil C Smith  wrote:


On Tue, 29 Aug 2023 at 01:14, Michael Bien  wrote:

On 29.08.23 00:50, Kenneth Fogel wrote:

I have mentioned this before, but the situation is getting worse. More

often than not, I must cut the text, paste the text

this issue is tracked here:

https://github.com/apache/netbeans/issues/3962

I do have a question. How many people actively working on NetBeans do

this in a Windows rather than Linux or MacOS operating system?

I believe most NB maintainers are indeed not using windows as their
primary OS, those who are might not be able to reproduce it given that
it shows some symptoms of a race condition (but it could be something

else).

It's not just about who is working on Windows, either, but whether
they can reproduce the problem.  While my primary development platform
is Ubuntu, I've got development and testing machines on Windows and
macOS.  I've tried multiple times to reproduce this, including using
the automated test in that issue (Ken, please look at that too).  My
system simply never shows the problem.

I think Michael is right to suggest a race condition is in play here.
That enabling fine logging mitigates the issue for many would suggest
timing.  However, the logging also has side effects, which eagerly
acquires the data in the clipboard, which could also be affecting the
outcome.

Also, let's not assume that this is unique to NetBeans or even a bug
in NetBeans itself!  https://youtrack.jetbrains.com/issue/JBR-5980/

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: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Chris

Hey all,

I'm Apache NetBeans user with WIndows 11 and sometimes I contribute so I
can also try to investigate. I sometimes and to say rarely that I can
reproduce this issue but the pain for me was not that high to say "I
need to do smth". If anyone needs help with Windows and NetBeans with
the copy and paste problematic, I'm really willing to help to identify
it after concrete (more or less) steps to reproduce.

I also tried the cut and ctrl+z but no problems with it.


Cheers

Chris

Am 29.08.2023 um 20:31 schrieb Geertjan Wielenga:

Here's the issue that awaits you when you move on from NetBeans:
https://youtrack.jetbrains.com/issue/JBR-5980/

I.e., it's probably connected to Swing and a race condition with the clipboard.

Gj

On Tue, Aug 29, 2023 at 7:39 PM Kenneth Fogel
 wrote:

Thank you everyone for your comments. As someone working on Java in Education I 
believe that this is a serious/critical issue. NetBeans is/was, in my opinion, 
the best IDE in education. Many schools and students run Windows. Though 
retired I have written a book and am now working on a project, creating 
workshops. In both cases I used/use NetBeans. I can't say how much longer I 
can. Having my train of thought interrupted when I do Ctrl-C and Ctrl-V only to 
realize it did not work, again, is reaching the end of my patience. Then there 
are the times I lose code because I forgot to restore (Ctrl-Z) it after pasting 
it in my text.. I have more work lined up but I'm not sure that I can continue 
with NetBeans.

I fully appreciate that complaining about Open Source is frowned on. I should 
just download the code and find/fix the problem myself. What I do not have are 
the days and possibly weeks to understand how NetBeans interacts with the 
clipboard to identify the problem. Is there a time when a code base becomes so 
large that the potential for side effects from changes in other parts of the 
code base becomes near impossible to determine without a full-time staff. Heck, 
I came across Eclipse posting a paid job to deal with enhancements to Eclipse.

Ken

PS: Funny Eclipse story. I began teaching using first JDeveloper and then 
Eclipse. In the late 2000s Eclipse was problematic hence the eventual move to 
NetBeans in my courses. In most cases the students needed to shutdown Eclipse 
and restart it. I just played with the recent version of Eclipse and what did I 
find? It's a menu selection that restarts Eclipse. I guess if you can't fix it 
then give it a switch to turn it off and then on again in a single click. Doing 
this in NetBeans buys me between 10 and 30 minutes of working copy/paste.

PPS: It never fails if I Cut. Is this not a significant clue?


-Original Message-
From: Kenneth Fogel 
Sent: Monday, August 28, 2023 6:50 PM
To: dev@netbeans.apache.org
Subject: Windows 11 Issues - Copy/Paste Failure

Hi,

I have mentioned this before, but the situation is getting worse. More often 
than not, I must cut the text, paste the text into the external app such as 
Word, and then restore (Ctrl-Z) the cut text back into NetBeans. This week it 
started to require this just when I want to copy and paste text between tabs in 
NetBeans. My uninformed guess is an issue in how NetBeans responds to the Copy 
command, somehow losing its connection to the Windows clipboard that does not 
happen if Cut is used.

But wait, there is more. It has become hit or miss to copy from another 
application into NetBeans.

I can get a temporary reprieve by closing and then restarting NetBeans.

I do have a question. How many people actively working on NetBeans do this in a 
Windows rather than Linux or MacOS operating system? I can say that this 
problem is unique to NetBeans in my Windows 11 environment and has not occurred 
in any other application or IDE that I have used. I don't think I can file a 
JIRA ticket because I cannot provide a repeatable example.

Here is my environment from the About box:

Product Version: Apache NetBeans IDE 18

Java: 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7

Runtime: OpenJDK Runtime Environment 17.0.7+7

System: Windows 11 version 10.0 running on amd64; Cp1252; en_CA (nb)

User directory: C:\Users\omni_\AppData\Roaming\NetBeans\18

Cache directory: C:\Users\omni_\AppData\Local\NetBeans\Cache\18


Ken Fogel



-
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://cwi

Re: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Geertjan Wielenga
Here's the issue that awaits you when you move on from NetBeans:
https://youtrack.jetbrains.com/issue/JBR-5980/

I.e., it's probably connected to Swing and a race condition with the clipboard.

Gj

On Tue, Aug 29, 2023 at 7:39 PM Kenneth Fogel
 wrote:
>
> Thank you everyone for your comments. As someone working on Java in Education 
> I believe that this is a serious/critical issue. NetBeans is/was, in my 
> opinion, the best IDE in education. Many schools and students run Windows. 
> Though retired I have written a book and am now working on a project, 
> creating workshops. In both cases I used/use NetBeans. I can't say how much 
> longer I can. Having my train of thought interrupted when I do Ctrl-C and 
> Ctrl-V only to realize it did not work, again, is reaching the end of my 
> patience. Then there are the times I lose code because I forgot to restore 
> (Ctrl-Z) it after pasting it in my text.. I have more work lined up but I'm 
> not sure that I can continue with NetBeans.
>
> I fully appreciate that complaining about Open Source is frowned on. I should 
> just download the code and find/fix the problem myself. What I do not have 
> are the days and possibly weeks to understand how NetBeans interacts with the 
> clipboard to identify the problem. Is there a time when a code base becomes 
> so large that the potential for side effects from changes in other parts of 
> the code base becomes near impossible to determine without a full-time staff. 
> Heck, I came across Eclipse posting a paid job to deal with enhancements to 
> Eclipse.
>
> Ken
>
> PS: Funny Eclipse story. I began teaching using first JDeveloper and then 
> Eclipse. In the late 2000s Eclipse was problematic hence the eventual move to 
> NetBeans in my courses. In most cases the students needed to shutdown Eclipse 
> and restart it. I just played with the recent version of Eclipse and what did 
> I find? It's a menu selection that restarts Eclipse. I guess if you can't fix 
> it then give it a switch to turn it off and then on again in a single click. 
> Doing this in NetBeans buys me between 10 and 30 minutes of working 
> copy/paste.
>
> PPS: It never fails if I Cut. Is this not a significant clue?
>
>
> -----Original Message-----
> From: Kenneth Fogel 
> Sent: Monday, August 28, 2023 6:50 PM
> To: dev@netbeans.apache.org
> Subject: Windows 11 Issues - Copy/Paste Failure
>
> Hi,
>
> I have mentioned this before, but the situation is getting worse. More often 
> than not, I must cut the text, paste the text into the external app such as 
> Word, and then restore (Ctrl-Z) the cut text back into NetBeans. This week it 
> started to require this just when I want to copy and paste text between tabs 
> in NetBeans. My uninformed guess is an issue in how NetBeans responds to the 
> Copy command, somehow losing its connection to the Windows clipboard that 
> does not happen if Cut is used.
>
> But wait, there is more. It has become hit or miss to copy from another 
> application into NetBeans.
>
> I can get a temporary reprieve by closing and then restarting NetBeans.
>
> I do have a question. How many people actively working on NetBeans do this in 
> a Windows rather than Linux or MacOS operating system? I can say that this 
> problem is unique to NetBeans in my Windows 11 environment and has not 
> occurred in any other application or IDE that I have used. I don't think I 
> can file a JIRA ticket because I cannot provide a repeatable example.
>
> Here is my environment from the About box:
>
> Product Version: Apache NetBeans IDE 18
>
> Java: 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7
>
> Runtime: OpenJDK Runtime Environment 17.0.7+7
>
> System: Windows 11 version 10.0 running on amd64; Cp1252; en_CA (nb)
>
> User directory: C:\Users\omni_\AppData\Roaming\NetBeans\18
>
> Cache directory: C:\Users\omni_\AppData\Local\NetBeans\Cache\18
>
>
> Ken Fogel
>
>
>
> -
> 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: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Kenneth Fogel
Thank you everyone for your comments. As someone working on Java in Education I 
believe that this is a serious/critical issue. NetBeans is/was, in my opinion, 
the best IDE in education. Many schools and students run Windows. Though 
retired I have written a book and am now working on a project, creating 
workshops. In both cases I used/use NetBeans. I can't say how much longer I 
can. Having my train of thought interrupted when I do Ctrl-C and Ctrl-V only to 
realize it did not work, again, is reaching the end of my patience. Then there 
are the times I lose code because I forgot to restore (Ctrl-Z) it after pasting 
it in my text.. I have more work lined up but I'm not sure that I can continue 
with NetBeans.

I fully appreciate that complaining about Open Source is frowned on. I should 
just download the code and find/fix the problem myself. What I do not have are 
the days and possibly weeks to understand how NetBeans interacts with the 
clipboard to identify the problem. Is there a time when a code base becomes so 
large that the potential for side effects from changes in other parts of the 
code base becomes near impossible to determine without a full-time staff. Heck, 
I came across Eclipse posting a paid job to deal with enhancements to Eclipse.

Ken

PS: Funny Eclipse story. I began teaching using first JDeveloper and then 
Eclipse. In the late 2000s Eclipse was problematic hence the eventual move to 
NetBeans in my courses. In most cases the students needed to shutdown Eclipse 
and restart it. I just played with the recent version of Eclipse and what did I 
find? It's a menu selection that restarts Eclipse. I guess if you can't fix it 
then give it a switch to turn it off and then on again in a single click. Doing 
this in NetBeans buys me between 10 and 30 minutes of working copy/paste. 

PPS: It never fails if I Cut. Is this not a significant clue?


-Original Message-
From: Kenneth Fogel  
Sent: Monday, August 28, 2023 6:50 PM
To: dev@netbeans.apache.org
Subject: Windows 11 Issues - Copy/Paste Failure

Hi,

I have mentioned this before, but the situation is getting worse. More often 
than not, I must cut the text, paste the text into the external app such as 
Word, and then restore (Ctrl-Z) the cut text back into NetBeans. This week it 
started to require this just when I want to copy and paste text between tabs in 
NetBeans. My uninformed guess is an issue in how NetBeans responds to the Copy 
command, somehow losing its connection to the Windows clipboard that does not 
happen if Cut is used.

But wait, there is more. It has become hit or miss to copy from another 
application into NetBeans.

I can get a temporary reprieve by closing and then restarting NetBeans.

I do have a question. How many people actively working on NetBeans do this in a 
Windows rather than Linux or MacOS operating system? I can say that this 
problem is unique to NetBeans in my Windows 11 environment and has not occurred 
in any other application or IDE that I have used. I don't think I can file a 
JIRA ticket because I cannot provide a repeatable example.

Here is my environment from the About box:

Product Version: Apache NetBeans IDE 18

Java: 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7

Runtime: OpenJDK Runtime Environment 17.0.7+7

System: Windows 11 version 10.0 running on amd64; Cp1252; en_CA (nb)

User directory: C:\Users\omni_\AppData\Roaming\NetBeans\18

Cache directory: C:\Users\omni_\AppData\Local\NetBeans\Cache\18


Ken Fogel



-
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: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Scott Palmer
On Tue, Aug 29, 2023 at 10:58 AM Peter Hull  wrote:

> On Tue, 29 Aug 2023 at 14:59, Scott Palmer  wrote:
> >  But when I worked on Windows it happened all the time.  It was a weekly
> > annoyance.
> >
> I know how frustrating this must be. I use NetBeans on Windows
> (currently NB 18 and Windows 11) and I do not see this issue. In the
> linked bug, there is some code which uses Robot to automate copy/paste
> to notepad, which was said to be a reliable reproducer. But I still
> couldn't get it to go wrong, even running it multiple times.
> The only thing I can say (and I'm sure it's been mentioned before,
> don't hate me) is that I have previously seen clipboard issues when
> VirtualBox was running. So I suppose the question is - are those
> people experiencing it absolutely sure they're not running something
> else that might be interfering with the clipboard?
> Pete
>

I wasn't running VirtualBox, but even so, it's only NetBeans.  Cut and
paste is working between everything else on the system, it is only when NB
is involved that I see issues.  It seems sometimes NB has it's internal
clipboard and doesn't talk to the system clipboard until you do something
to coax it back to working.  Usually a copy from the About dialog will fix
it, when the editor windows are broken with respect to the clipboard.

Scott


Re: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Ömer Halit Çizmeci
I use Netbeans 18 on Windows 11. This issue happens a lot to me. I also
have NetBeans 15 on the same PC. I experience the same problem. I also have
NetBeans 12 on the same computer but never had copy-paste problem. I don't
know if this narrows down anything.

On Tue, Aug 29, 2023, 5:59 PM Peter Hull  wrote:

> On Tue, 29 Aug 2023 at 14:59, Scott Palmer  wrote:
> >  But when I worked on Windows it happened all the time.  It was a weekly
> > annoyance.
> >
> I know how frustrating this must be. I use NetBeans on Windows
> (currently NB 18 and Windows 11) and I do not see this issue. In the
> linked bug, there is some code which uses Robot to automate copy/paste
> to notepad, which was said to be a reliable reproducer. But I still
> couldn't get it to go wrong, even running it multiple times.
> The only thing I can say (and I'm sure it's been mentioned before,
> don't hate me) is that I have previously seen clipboard issues when
> VirtualBox was running. So I suppose the question is - are those
> people experiencing it absolutely sure they're not running something
> else that might be interfering with the clipboard?
> Pete
>
> -
> 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: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Peter Hull
On Tue, 29 Aug 2023 at 14:59, Scott Palmer  wrote:
>  But when I worked on Windows it happened all the time.  It was a weekly
> annoyance.
>
I know how frustrating this must be. I use NetBeans on Windows
(currently NB 18 and Windows 11) and I do not see this issue. In the
linked bug, there is some code which uses Robot to automate copy/paste
to notepad, which was said to be a reliable reproducer. But I still
couldn't get it to go wrong, even running it multiple times.
The only thing I can say (and I'm sure it's been mentioned before,
don't hate me) is that I have previously seen clipboard issues when
VirtualBox was running. So I suppose the question is - are those
people experiencing it absolutely sure they're not running something
else that might be interfering with the clipboard?
Pete

-
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: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Alex O'Ree
This has been an issue since at least v8.

On Tue, Aug 29, 2023, 9:59 AM Scott Palmer  wrote:

> The last time I looked into it, there seemed to be some workarounds in
> NetBeans for ancient Swing clipboard issues that probably don't apply
> anymore.  I think NB is doing something weird with the clipboard.
>
> I'm primarily developing on Linux now, so I'm spared from this issue.  But
> when I worked on Windows it happened all the time.  It was a weekly
> annoyance.
>
> Scott
>
>
> On Tue, Aug 29, 2023 at 6:03 AM Neil C Smith 
> wrote:
>
> > On Tue, 29 Aug 2023 at 01:14, Michael Bien  wrote:
> > > On 29.08.23 00:50, Kenneth Fogel wrote:
> > > > I have mentioned this before, but the situation is getting worse.
> More
> > often than not, I must cut the text, paste the text
> > >
> > > this issue is tracked here:
> > https://github.com/apache/netbeans/issues/3962
> > >
> > > > I do have a question. How many people actively working on NetBeans do
> > this in a Windows rather than Linux or MacOS operating system?
> > >
> > > I believe most NB maintainers are indeed not using windows as their
> > > primary OS, those who are might not be able to reproduce it given that
> > > it shows some symptoms of a race condition (but it could be something
> > else).
> >
> > It's not just about who is working on Windows, either, but whether
> > they can reproduce the problem.  While my primary development platform
> > is Ubuntu, I've got development and testing machines on Windows and
> > macOS.  I've tried multiple times to reproduce this, including using
> > the automated test in that issue (Ken, please look at that too).  My
> > system simply never shows the problem.
> >
> > I think Michael is right to suggest a race condition is in play here.
> > That enabling fine logging mitigates the issue for many would suggest
> > timing.  However, the logging also has side effects, which eagerly
> > acquires the data in the clipboard, which could also be affecting the
> > outcome.
> >
> > Also, let's not assume that this is unique to NetBeans or even a bug
> > in NetBeans itself!  https://youtrack.jetbrains.com/issue/JBR-5980/
> >
> > 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: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Scott Palmer
The last time I looked into it, there seemed to be some workarounds in
NetBeans for ancient Swing clipboard issues that probably don't apply
anymore.  I think NB is doing something weird with the clipboard.

I'm primarily developing on Linux now, so I'm spared from this issue.  But
when I worked on Windows it happened all the time.  It was a weekly
annoyance.

Scott


On Tue, Aug 29, 2023 at 6:03 AM Neil C Smith  wrote:

> On Tue, 29 Aug 2023 at 01:14, Michael Bien  wrote:
> > On 29.08.23 00:50, Kenneth Fogel wrote:
> > > I have mentioned this before, but the situation is getting worse. More
> often than not, I must cut the text, paste the text
> >
> > this issue is tracked here:
> https://github.com/apache/netbeans/issues/3962
> >
> > > I do have a question. How many people actively working on NetBeans do
> this in a Windows rather than Linux or MacOS operating system?
> >
> > I believe most NB maintainers are indeed not using windows as their
> > primary OS, those who are might not be able to reproduce it given that
> > it shows some symptoms of a race condition (but it could be something
> else).
>
> It's not just about who is working on Windows, either, but whether
> they can reproduce the problem.  While my primary development platform
> is Ubuntu, I've got development and testing machines on Windows and
> macOS.  I've tried multiple times to reproduce this, including using
> the automated test in that issue (Ken, please look at that too).  My
> system simply never shows the problem.
>
> I think Michael is right to suggest a race condition is in play here.
> That enabling fine logging mitigates the issue for many would suggest
> timing.  However, the logging also has side effects, which eagerly
> acquires the data in the clipboard, which could also be affecting the
> outcome.
>
> Also, let's not assume that this is unique to NetBeans or even a bug
> in NetBeans itself!  https://youtrack.jetbrains.com/issue/JBR-5980/
>
> 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: Windows 11 Issues - Copy/Paste Failure

2023-08-29 Thread Neil C Smith
On Tue, 29 Aug 2023 at 01:14, Michael Bien  wrote:
> On 29.08.23 00:50, Kenneth Fogel wrote:
> > I have mentioned this before, but the situation is getting worse. More 
> > often than not, I must cut the text, paste the text
>
> this issue is tracked here: https://github.com/apache/netbeans/issues/3962
>
> > I do have a question. How many people actively working on NetBeans do this 
> > in a Windows rather than Linux or MacOS operating system?
>
> I believe most NB maintainers are indeed not using windows as their
> primary OS, those who are might not be able to reproduce it given that
> it shows some symptoms of a race condition (but it could be something else).

It's not just about who is working on Windows, either, but whether
they can reproduce the problem.  While my primary development platform
is Ubuntu, I've got development and testing machines on Windows and
macOS.  I've tried multiple times to reproduce this, including using
the automated test in that issue (Ken, please look at that too).  My
system simply never shows the problem.

I think Michael is right to suggest a race condition is in play here.
That enabling fine logging mitigates the issue for many would suggest
timing.  However, the logging also has side effects, which eagerly
acquires the data in the clipboard, which could also be affecting the
outcome.

Also, let's not assume that this is unique to NetBeans or even a bug
in NetBeans itself!  https://youtrack.jetbrains.com/issue/JBR-5980/

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: Windows 11 Issues - Copy/Paste Failure

2023-08-28 Thread Michael Bien

Hello Kenneth,


On 29.08.23 00:50, Kenneth Fogel wrote:

Hi,

I have mentioned this before, but the situation is getting worse. More often 
than not, I must cut the text, paste the text


this issue is tracked here: https://github.com/apache/netbeans/issues/3962


I do have a question. How many people actively working on NetBeans do this in a 
Windows rather than Linux or MacOS operating system?


I believe most NB maintainers are indeed not using windows as their 
primary OS, those who are might not be able to reproduce it given that 
it shows some symptoms of a race condition (but it could be something else).


best regards,

-mbien


Re: Windows 11 Issues - Copy/Paste Failure

2023-08-28 Thread Ömer Halit Çizmeci
I've been experiencing the same issue for a long time now and the solution
is exactly how you described. Perform cut and undo in Netbeans.

I am not sure what triggers this bug but it definitely exists.

Thanks!



On Tue, Aug 29, 2023, 1:50 AM Kenneth Fogel
 wrote:

> Hi,
>
> I have mentioned this before, but the situation is getting worse. More
> often than not, I must cut the text, paste the text into the external app
> such as Word, and then restore (Ctrl-Z) the cut text back into NetBeans.
> This week it started to require this just when I want to copy and paste
> text between tabs in NetBeans. My uninformed guess is an issue in how
> NetBeans responds to the Copy command, somehow losing its connection to the
> Windows clipboard that does not happen if Cut is used.
>
> But wait, there is more. It has become hit or miss to copy from another
> application into NetBeans.
>
> I can get a temporary reprieve by closing and then restarting NetBeans.
>
> I do have a question. How many people actively working on NetBeans do this
> in a Windows rather than Linux or MacOS operating system? I can say that
> this problem is unique to NetBeans in my Windows 11 environment and has not
> occurred in any other application or IDE that I have used. I don't think I
> can file a JIRA ticket because I cannot provide a repeatable example.
>
> Here is my environment from the About box:
>
> Product Version: Apache NetBeans IDE 18
>
> Java: 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7
>
> Runtime: OpenJDK Runtime Environment 17.0.7+7
>
> System: Windows 11 version 10.0 running on amd64; Cp1252; en_CA (nb)
>
> User directory: C:\Users\omni_\AppData\Roaming\NetBeans\18
>
> Cache directory: C:\Users\omni_\AppData\Local\NetBeans\Cache\18
>
>
> Ken Fogel
>
>
>


Windows 11 Issues - Copy/Paste Failure

2023-08-28 Thread Kenneth Fogel
Hi,

I have mentioned this before, but the situation is getting worse. More often 
than not, I must cut the text, paste the text into the external app such as 
Word, and then restore (Ctrl-Z) the cut text back into NetBeans. This week it 
started to require this just when I want to copy and paste text between tabs in 
NetBeans. My uninformed guess is an issue in how NetBeans responds to the Copy 
command, somehow losing its connection to the Windows clipboard that does not 
happen if Cut is used.

But wait, there is more. It has become hit or miss to copy from another 
application into NetBeans.

I can get a temporary reprieve by closing and then restarting NetBeans.

I do have a question. How many people actively working on NetBeans do this in a 
Windows rather than Linux or MacOS operating system? I can say that this 
problem is unique to NetBeans in my Windows 11 environment and has not occurred 
in any other application or IDE that I have used. I don't think I can file a 
JIRA ticket because I cannot provide a repeatable example.

Here is my environment from the About box:

Product Version: Apache NetBeans IDE 18

Java: 17.0.7; OpenJDK 64-Bit Server VM 17.0.7+7

Runtime: OpenJDK Runtime Environment 17.0.7+7

System: Windows 11 version 10.0 running on amd64; Cp1252; en_CA (nb)

User directory: C:\Users\omni_\AppData\Roaming\NetBeans\18

Cache directory: C:\Users\omni_\AppData\Local\NetBeans\Cache\18


Ken Fogel