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.
[dev jul 07] org.netbeans.api.tasklist/1 [1.1 200304230100] org.netbeans.modules.tasklist.core/1 [1.11 200307070100] org.netbeans.modules.tasklist.javadoc/1 [1.1 200304230100] org.netbeans.modules.tasklist.docscan/1 [1.6 200304230100] org.netbeans.modules.tasklist.suggestions/1 [1.9 200307070100] org.netbeans.modules.tasklist.html/1 [1.3 ${buildnumber}] org.netbeans.modules.tasklist.javaparser/1 [1.1 200304230100] When I open the Suggestions window (View -> Suggestions) fresh in the IDE, it works fine - tracks current document, shows problems, F12 works, etc. Now I shut down with the Suggestions window visible. Does not seem to matter if there was any document open at the time, just that the window be visible. After restarting, the Suggestions window continues to correctly display suggestions for the current file. You can double-click them to jump to them. However F12 and S-F12 no longer work: they just beep. (bug #1) So I close the Suggestions window and reopen it from the View menu. Now it is empty and stays empty regardless of what files you open. (bug #2) If I close the Suggestions window, shut down NB, restart, then reopen the window, then everything works again. The problems only occur if it was open the last time NB was run. Probably some mistake in serialization / externalization, such as forgetting to readd transient listeners, etc.
Part #2 of the bug is now fixed (version 1.11 of the suggestions module). The root problem was that the window system will not call TopComponent.componentShowing when the window is opened a second time (and third, fourth, etc.). It does correctly get called when the tab is raised. There was a problem with the event-coalescer too which I fixed. Part #1 is trickier. The reason the F12 button doesn't work after a restart, is that after the tasklist window has initialized itself and has hooked up the F12 action to its action performer, the Output Window's -initialization- code (not its componentOpened mind you - its constructor!) goes and steals the F12 key back - and sets it to disabled. There's not really anything I can do about that - other than to ask the output tab owner to change it such that the output window only touches the action performer when it's opened or activated! (There's no reason for it to disable it initially, it already gets disabled on startup (I Thread.dumpStacked within NextOutJumpAction.setEnabled): at org.netbeans.core.output.NextOutJumpAction.setEnabled(NextOutJumpAction.java:52) at org.openide.util.actions.CallbackSystemAction.updateEnabled(CallbackSystemAction.java:173) at org.openide.util.actions.CallbackSystemAction.setActionPerformer(CallbackSystemAction.java:136) at org.netbeans.core.output.NextOutJumpAction.setActionPerformer(NextOutJumpAction.java:58) at org.netbeans.core.output.OutputTabTerm$OutTermPane.updateNextPrevActions(OutputTabTerm.java:959) at org.netbeans.core.output.OutputTabTerm$OutTermPane.<init>(OutputTabTerm.java:786) at org.netbeans.core.output.OutputTabTerm.<init>(OutputTabTerm.java:193) at org.netbeans.core.output.OutputTabTerm.initialize(OutputTabTerm.java:340) at org.netbeans.core.output.OutputTabTerm.access$100(OutputTabTerm.java:81) at org.netbeans.core.output.OutputTabTerm$Factory.getStdOutputTab(OutputTabTerm.java:620) at org.netbeans.core.output.OutputTabTerm.getStdOutputTab(OutputTabTerm.java:234) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.createFromMethod(XMLSettingsSupport.java:622) What I -could- however fix is the code such that activating the suggestions window makes F12 work again. That used to work and had regressed; now fixed in tasklist/core version 1.12. So, I'm going to close this bug as fixed (as far as the tasklist window is concerned) and I will file a second issue against openide?/output requesting that it gets less aggressive about setting the output performer.
The core issue which tracks the remainder of #1 is 34908.
It was resolved in 3.6 time or earlier.