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 185048 - auto compleat for </ xml tags not self populating.
Summary: auto compleat for </ xml tags not self populating.
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: _ alexpetrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-26 20:53 UTC by murraypetera
Modified: 2010-05-04 12:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot_code_completion_closing_tag.png (86.13 KB, image/png)
2010-04-27 17:07 UTC, _ alexpetrov
Details
pom.xml (333 bytes, text/plain)
2010-05-04 12:11 UTC, _ alexpetrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description murraypetera 2010-04-26 20:53:18 UTC
when I am editing an xml file the < tries to auto populate, the data tries i.e. <version>xxx but the </ does not.


Product Version = NetBeans IDE 6.9 Beta (Build 201004200117)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_18
Runtime = Java HotSpot(TM) Client VM 16.0-b13
Comment 1 Peter Pis 2010-04-27 07:20:09 UTC
Reassigning.
Comment 2 _ alexpetrov 2010-04-27 17:06:41 UTC
I've created a simple empty XML file and typed tag <version> and its value - the closing tag </version> has appeared after typing of "</" (see the attached screen shot "screenshot_code_completion_closing_tag.png")

I've checked this bug twice on:
Product Version: NetBeans IDE Dev (Build 201004260200)
Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16
System: Linux version 2.6.18-8.el5 running on i386

and (http://smetiste.czech.sun.com/builds/netbeans/trunk/daily/latest/zip/)
Product Version  = NetBeans IDE Dev (Build 201004270201)
Operating System = Linux version 2.6.18-8.el5 running on i386
Java; VM; Vendor = 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16

Please, attach a XML file, which was used for this bug reproducing, and describe your steps exactly (all details are important).
Comment 3 _ alexpetrov 2010-04-27 17:07:20 UTC
Created attachment 98157 [details]
screenshot_code_completion_closing_tag.png
Comment 4 murraypetera 2010-04-27 17:47:07 UTC
Here is the top of the pom.xml file

Please note the pom is valid works, no errors. 
I type <version>sdf</ and nothing happens. in 6.8 it offers me </version> in 6.9 it does not.

I would add a screen shot but there is nothing to show...caus it does not auto populate. 

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.ifs</groupId>
    <artifactId>asdf</artifactId>
    <version>1.0</version>
    <name>asdfBase Project</name>
    <url>http://asdf:9090/</url>
    <description>Base POM to get Reports, site, etc.</description>
    <packaging>pom</packaging>
<version>sdf</
    <repositories>
        <repository>
            <releases>
Comment 5 _ alexpetrov 2010-05-04 12:10:56 UTC
Fixed in trunk: http://hg.netbeans.org/main/rev/c0aac6f13fe9

Steps for checking:
1. Open the attached small pom.xml
2. Put the caret at the end of the line 3 ("<version>1.0</") and press Ctrl+Space
Result:
- the code completion box should appear with text "</version>"
Comment 6 _ alexpetrov 2010-05-04 12:11:43 UTC
Created attachment 98427 [details]
pom.xml