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.
Using the latest qbuild 200506211800 when I press the . or at other occasions when the code completion should appear, either nothing happens or the window comes up very shortly, then disappears again.
Same here - with qbuild 200506211800 or 200506231800 and Mustang b41!!! Help~ ><"
Yes, CC is completly unusable on recent Mustang builds. Sometimes after pressing Ctrl+Enter only Javadoc window is shown. It seems that after invoking CC the editor (or even whole IDE) looses focus. Please Dusan could you take a look at it and provide some evaluation. Thanks.
I was just testing on RH Linux on b42. No apparent problems encountered. On what OS are you testing? Could you please test with b42 as well? Thanks.
Just tried JDK 6.0 b42 on dev-200506281800 on Win XP and it really doesn't work at all.
*** Issue 60171 has been marked as a duplicate of this issue. ***
I was using b41 on WinXP as well - have exactly the same problems as the first comment described
As far as I know, this bug occurs only on Windows OS.
jdk1.5.0_04 on windows2000 either.
Hmmm - a different Windows Platform with a JDK of standard release quality. That breaks the pattern that we have build up so far doesn't it? ^^" BTW, since none of the Mustang releases works I'm now using jdk1.5.0_04 on WinXP.
I didn't encounter this bug on Linux or Solaris, that's why I think it's Windows-OS specific. We have changed code completion's window into a pop-up window. The advantage is that you can display code completion even if it's bigger than the editor (e.g. in situations it's close to the borders of IDE.). Dusane or Milo, can you investigate why it happens and if we cannot avoid this behaviour, we should file it as a JDK bug. Thanks!
agree - I am just surprised why that would happen to jdk1.5.0_04 at all~ preliminary evidence ---> problem with the latest Mustang builds the last one with jdk1.5.0_04 on Win2K <----- ?!?!?!?!
*** Issue 60378 has been marked as a duplicate of this issue. ***
It seems it is problem of JDK. javax.swing.Popup will receive a focus after popup showing. It will cause a focusLost event to be fired on JEditorPane. The listener is attaching in CompletionImpl. In Completionimpl.focusLost the hideAll() action is called. So now it works as follows: 1. completion is computed and shown in javax.swing.Popup. 2. Popup will receive the focus - JDK 1.6 issue, regression from JDK1.5 3. focus is lost in JEditorPane and completion is closed I have already entered the issue against JDK 1.6 After accepting I will close this one as WONTFIX, as I do not see a workaround.
Mato, what is the number of the JDK bug? The solution for the case that JDK team won't be able to fix it in JDK 6 is to use the old, lighter pop-up. We'll need to communicate with JDK team to find out if they can fix this in time.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6295914 (It may take a day or two before the bug shows up in external database)
IMHO we should try to parent to pane and examine the focusLost() events and attempt to match them to opened popup(s) - there may be up to three possible ones - completion,doc and tip popups. The PopupFactory does not give access to the actual component being constructed but I hope that the content component's parent i.e. contents.getParent() should work and could be checked in focusEvent.getOppositeComponent() or possibly use SwingUtilities.findFocusOwner(pane).
I am testing with the daily build from 28.8. and jdk1.6.0, b48, and code completion seems to work now. Cheers Georg
Romane, could you please check whether this works on b49 on XP and I'll then close the issue. Thanks.
It works with b49, marking issue as fixed. Feel free to reopen if it won't work on this build or any newer.
Verified.