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.
Product Version: NetBeans IDE Dev (Build 200807170007) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Code completion is not invoked in .xml when pushing Ctrl+Space. The common way for invoking code completion in NetBeans IDE is pushing Ctrl+Space which is not working but when the user writes the start of tag and then waits the code completion appears (which works only for tag but not attributes; attributes completion must be called by Ctrl+Space which parradoxly works).
Depends on where you're pressing Ctrl+Space. Will you be able to attach a xml and tell me excatly where it doesn't work?
Tony, can you please try and update?
Appears to be working for me. Product Version: NetBeans IDE Dev (Build 200807170007) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)
It seems to be working fine.
Verified Product Version: NetBeans IDE Dev (Build 200807170007) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)
I see, the problem is I am pushing quickly the following sequence: '<' then Ctrl+SpaceBar When the '<' is pushed the code completion appears pretty quickly but then I press Ctrl+SpaceBar which causes that "No Suggestions" appear and code completion disappears. So that the bug is that "No Suggestions" appears after pushing '<' followed by Ctrl+SpaceBar. I am reopening issue and lowering the priority to P3.
I am unable to reproduce even using a really large xml document. Can you reproduce using any xml document? Can you attach one that you are able to see this issue using?
Created attachment 64980 [details] large xml document where no problem seen
Please try with those steps: Product Version: NetBeans IDE Dev (Build 200807181543) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb) Userdir: /tmp/ud Steps to reproduce: ----------------- - create new java project - open it's build.xml - try to add new target by following: - type '<' -> CC appear, that is fine. However many users type something like '<tar' and push CTRL-space immediately. That gets the "no suggestion" box. Problem is not that CC does not work, problem is that CC is interrupted by CTRL-SPACE. Size of XML does not matter IMHO. P2 since that during e.g. developing Ant scripts with help of CC you have to rapidly change the behavior (compared with developing Java), because CTRL-SPACE does not bring up completion, but kills already popped up one.
System Information: Product Version: NetBeans IDE Dev (Build 200807181543) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb) I see the problem. Once editing a tag and CC suggestion is dismissed (in whatever manner) and the tag is still incomplete, then invoking CC offers no suggestions. I was able to reproduce this behavior with the steps in desc 10. I still cannot reproduce with a schema or schema constrained XML document.
editor/completion gurus, kindly take a look at this. I have no idea why this is a problem in XML based on DTD. The "No suggestions" seems to be coming from the else block of if(completionResultSets.size() > 0) in CompletionImpl::completionQuery().
Of course, that "No suggestions" appears if completionResultSets.size() == 0. This is as designed. The bug is in xml editor. Adding Dusan on cc.
I thought that was clear. I was hoping you guys will be able to throw some light. What's not clear is why the pop-up disappears only in this use-case. For java CC or xml based on schemas, this works nicely.
I've just reassigned this issue to proper component.
Samaresh, try to put a breakpoint to the CompletionImpl.hideCompletion(boolean) method, just to make sure that nobody is calling Completion.hideCompletion() or Completion.hideAll() methods.
Sorry, it doesn't hide but somehow bring up "No Suggestions". Try as per instructions by musilt2 on Mon Jul 21 2008. That will help you understand the issue.
Fix integrated: http://hg.netbeans.org/main/rev/6d4fad410f77.
*** Issue 112500 has been marked as a duplicate of this issue. ***
Integrated into 'main-golden', available in build *200808051401* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/6d4fad410f77 User: samaresh@netbeans.org Log: #140511 Code completion doesn't work
Fix verified Product Version: NetBeans IDE 6.5 Beta (Build 200808051501) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119 System: Mac OS X version 10.5.4 running on i386; MacRoman; en_US (nb)