This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The editor loses focus and will not accept focus after I click on a lightbulb suggested action. The only way I have found to restore focus in the editor is to close the file I modified and re-open it. As soon as the file is closed, focus is restored to one of the other open file windows. While the modified file is open, focus is not available in any editor session. The following steps should reproduce the issue: 1. Create a new Java application project. 2. Type "throw new IOException();" in the main method 3. Click lightbulb and accept "add import for IOException" 4. Focus is lost This is my system and build: Product Version: NetBeans IDE Dev (Build 200710180000) Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb)
Incidentally, I cannot reproduce this in the Beta 1 build, only the various nightlies I have used since Beta 1. As you will see from the description below, this is recorded against 2007-10-18's build. (Just for maximum clarity :))
Honzo, seems like an another occurrence of issue #65326 - would you have time to test it? Thanks.
It is a focus bug of popup menu in Apple's java. You should filed it to their bug tracking system first. I have put some workaround in editor hints ui already and it seemed to work. I will investigate next week since I do not have access to any Mac now. As a workaround to avoid this do not use mouse for hints for now.
@jpokorsky thanks for the suggestions. I'm puzzled by why it would show up in recent builds but not in beta 1, at least in the same places. I had it occur when I followed another lightbulb menu item and had NB 6 beta 1 create a method in another class, but it doesn't happen anywhere near as frequently. I'd be happy to file a bug with apple - can you characterize it in a bit more detail? I will give the NB build as an example, but I suspect you have a much clearer idea of how Apple's Java is failing here. Thanks.
@jlahoda I agree with the comment: ------- Additional comments from jportway Sun Feb 25 15:40:30 +0000 2007 ------- on issue #65326. That comment describes the problem I'm having and my workaround. What would you like me to test? I have determined that I cannot regain focus by clicking in the project tree and then back in the editor--someone else suggested that a while ago.
I have been trying to reproduce with the same configuration Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb) using build 200710180000 and 20071022 and it works for me. Can you reproduce it reliably? If yes please try to place the following patch focus-patch.jar to {nb.install.dir}/ide8/modules/patches/org-netbeans-spi-editor-hints, run the IDE in console and attach the output here.
Created attachment 51414 [details] focus-patch.jar
I will add a new patch that logs messages to {nb.userdir}/var/log/messages.log
Created attachment 52304 [details] patch logging to messages.log
@jpokorsky I'm not seeing this any more since upgrading to beta 2. I also upgraded my OS to Leopard at the weekend, so NB is now running under the build 1.5 release 13 that ships with that. Again, no sign of this bug now.
Closing as WORKSFORME.