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 270941 - Maven POM editor does not add final tag inside dependencies element after auto-completion if some text is entered after initial tag
Summary: Maven POM editor does not add final tag inside dependencies element after aut...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-23 11:12 UTC by wissenstein
Modified: 2017-06-23 11:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (882.61 KB, text/plain)
2017-06-23 11:12 UTC, wissenstein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wissenstein 2017-06-23 11:12:10 UTC
Product Version = NetBeans IDE Dev (Build 201706220001)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_131
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.131-b11

Reproducibility: Happens every time

STEPS:
  * Create a Maven project.
  * Open its pom.xml descriptor
  * Add a new element /project/dependencies/dependency. There are tags <depencencies><dependency></dependency></dependencies> in pom.xml in this order.
  * Put the caret between the tags <depencency> and </dependency>
  * Add tag <groupId>, put the caret just after it and press Ctrl+Space. A list of auto-completion advices is shown.
  * Choose "HTTPClient" in the list with the down-arrow key and press Enter. The document contains the following fragment now: "<groupId>HTTPClient</groupId>".
  * Delete the groupId element created on the previous step and put the caret between the tags <depencency> and </dependency>.
  * Add tag <groupId>, put the caret just after it and press Ctrl+Space. A list of auto-completion advices is shown again.
  * Press keys Shift+H. "HTTPClient" is available to choose.
  * Choose "HTTPClient" in the list.

ACTUAL:
  The document contains fragment "<groupId>HTTPClient" without the final "</groupId>".

EXPECTED:
  The document contains fragment "<groupId>HTTPClient</groupId>".

The same for <artifactId>, <version> tags (and may be for other tags).
Comment 1 wissenstein 2017-06-23 11:12:22 UTC
Created attachment 164606 [details]
IDE log