You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Will Hartung <wi...@gmail.com> on 2020/09/26 22:15:52 UTC

Loss of focus after using Wizards NB12 JDK 8 MacOS 10.14.6

*Product Version:* Apache NetBeans IDE 12.0
*Java:* 1.8.0_261; Java HotSpot(TM) 64-Bit Server VM 25.261-b12

*Runtime:* Java(TM) SE Runtime Environment 1.8.0_261-b12

*System:* Mac OS X version 10.14.6 running on x86_64; UTF-8; en_US (nb)

Simply, whenever I use one of the wizards (like Override Method, or
anything from the ^I menu, both if I use ^I or right-click Insert Code),
the wizard runs and does its work, but after that I have no focus in
NetBeans.

I can drag the mouse, double click words, things like that. But I can't
type. I can open new editor windows, like other files, and can not type.
The caret vanishes. The only solution is to switch to another app, and then
switchback, and all is back to normal.

This is running the latest Oracle JDK. I've seen it in NB 8.x, I've seen it
on earlier instances of JDK 8.

I have not tried latest JDKs.

This may well be related.
https://bz.apache.org/netbeans/show_bug.cgi?id=119617

But I don't know if that was migrated to the new system or not.

Regards,

Will Hartung

Re: Loss of focus after using Wizards NB12 JDK 8 MacOS 10.14.6

Posted by Will Hartung <wi...@gmail.com>.
More follow up.

This does not seem to happen on the latest OpenJDK from Ubuntu. This is
likely a Java/Mac thing, I've seen other mentions about this happening in
other Java projects, but it's often associated with remote viewing
programs. But that's not the case here. I've also seen anecdotes that it's
"easy to duplicate in NetBeans".

Mind, I have no idea how this would even be approached. How to discern that
it is, indeed, a JDK thing specific to the Mac (but I've also heard
anecdotes of it happening on Windows).

It's spectacularly annoying. Honestly, it makes the IDE borderline
unusable. I'm debating hosting a Linux VM on my mac to move forward
(perhaps rootless x client). I've even explored VSCode as an alternative,
but it was honestly not as good an experience. I think I'd rather fight
shortcut keys and VirtualBox/Linux on a shared folder than VSCode.

(This isn't a knock against VSCode, it's a knock against VSCode using Java
from a long time NB user, it's just more pain than I'm willing to accept
right now if I don't have too. It's as much me as it is VSCode.)


On Fri, Oct 9, 2020 at 9:19 AM Will Hartung <wi...@gmail.com> wrote:

> Just an FYI, this also happens on the latest Oracle JDK 11.
>
> Simple test.
>
> Create a new class, or open an existing Java class
> Add some member variables.
> ^IGetters and Setters
> Cancel the dialog.
> Caret/Focus is gone.
>
> On Sat, Sep 26, 2020 at 3:15 PM Will Hartung <wi...@gmail.com>
> wrote:
>
>> *Product Version:* Apache NetBeans IDE 12.0
>> *Java:* 1.8.0_261; Java HotSpot(TM) 64-Bit Server VM 25.261-b12
>>
>> *Runtime:* Java(TM) SE Runtime Environment 1.8.0_261-b12
>>
>> *System:* Mac OS X version 10.14.6 running on x86_64; UTF-8; en_US (nb)
>>
>> Simply, whenever I use one of the wizards (like Override Method, or
>> anything from the ^I menu, both if I use ^I or right-click Insert Code),
>> the wizard runs and does its work, but after that I have no focus in
>> NetBeans.
>>
>> I can drag the mouse, double click words, things like that. But I can't
>> type. I can open new editor windows, like other files, and can not type.
>> The caret vanishes. The only solution is to switch to another app, and then
>> switchback, and all is back to normal.
>>
>> This is running the latest Oracle JDK. I've seen it in NB 8.x, I've seen
>> it on earlier instances of JDK 8.
>>
>> I have not tried latest JDKs.
>>
>> This may well be related.
>> https://bz.apache.org/netbeans/show_bug.cgi?id=119617
>>
>> But I don't know if that was migrated to the new system or not.
>>
>> Regards,
>>
>> Will Hartung
>>
>>

Re: Loss of focus after using Wizards NB12 JDK 8 MacOS 10.14.6

Posted by Will Hartung <wi...@gmail.com>.
Just an FYI, this also happens on the latest Oracle JDK 11.

Simple test.

Create a new class, or open an existing Java class
Add some member variables.
^IGetters and Setters
Cancel the dialog.
Caret/Focus is gone.

On Sat, Sep 26, 2020 at 3:15 PM Will Hartung <wi...@gmail.com> wrote:

> *Product Version:* Apache NetBeans IDE 12.0
> *Java:* 1.8.0_261; Java HotSpot(TM) 64-Bit Server VM 25.261-b12
>
> *Runtime:* Java(TM) SE Runtime Environment 1.8.0_261-b12
>
> *System:* Mac OS X version 10.14.6 running on x86_64; UTF-8; en_US (nb)
>
> Simply, whenever I use one of the wizards (like Override Method, or
> anything from the ^I menu, both if I use ^I or right-click Insert Code),
> the wizard runs and does its work, but after that I have no focus in
> NetBeans.
>
> I can drag the mouse, double click words, things like that. But I can't
> type. I can open new editor windows, like other files, and can not type.
> The caret vanishes. The only solution is to switch to another app, and then
> switchback, and all is back to normal.
>
> This is running the latest Oracle JDK. I've seen it in NB 8.x, I've seen
> it on earlier instances of JDK 8.
>
> I have not tried latest JDKs.
>
> This may well be related.
> https://bz.apache.org/netbeans/show_bug.cgi?id=119617
>
> But I don't know if that was migrated to the new system or not.
>
> Regards,
>
> Will Hartung
>
>