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.

Bug 108634

Summary: Code completion items being shown outside xml tags
Product: xml Reporter: Rohan Ranade <rohanranade>
Component: Schema ToolsAssignee: Samaresh Panda <samaresh>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 122444    
Attachments: Screenshot of the issue

Description Rohan Ranade 2007-07-02 14:01:00 UTC
Please refer the attached screenshot to see the issue. 

When I enter the tag as :

<var name="aa"/> and press CTRL+SPACE, "No suggestions" is displayed, which is correct. However, after I take my cursor
to some other line and then bring it back again to the end of the var tag, and press CTRL + SPACE, completion items are
shown incorrectly outside the tag.
Comment 1 Rohan Ranade 2007-07-02 14:01:36 UTC
Created attachment 44622 [details]
Screenshot of the issue
Comment 2 Samaresh Panda 2007-09-26 02:43:01 UTC
I might have fixed this already as a part of some other fix. Please verify.
Comment 3 tonybeckham 2007-10-22 20:05:17 UTC
Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710212201)
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)

Code completion still shows suggestions outside of tag.

Steps:
1. Create a new schema
2. add some complex type and a sequence, to that add an element.
3. in Source view position your cursor after the element and invoke code completion and elements attribute options are
shown but CC should show no suggestion.
Comment 4 Samaresh Panda 2008-01-17 05:55:13 UTC
Fix integrated.
/cvs/xml/schema/completion/src/org/netbeans/modules/xml/schema/completion/util/CompletionContextImpl.java,v  <-- 
CompletionContextImpl.java
new revision: 1.20; previous revision: 1.19
/cvs/xml/schema/completion/test/unit/src/org/netbeans/modules/xml/schema/completion/BasicCompletionTest.java,v  <-- 
BasicCompletionTest.java
new revision: 1.18; previous revision: 1.17
Comment 5 tonybeckham 2008-01-24 22:19:47 UTC
Fix Verified:

Product Version: NetBeans IDE Dev (Build 200801220251)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.1 running on i386; MacRoman; en_US (nb)