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.
Summary: | pom code completion, wrong closing tag | ||
---|---|---|---|
Product: | xml | Reporter: | everflux <everflux> |
Component: | Code | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | MackSix, manikantannaren, markiewb, mkleint |
Priority: | P3 | Keywords: | REGRESSION |
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
suggestion
wrong completion |
Created attachment 139172 [details]
wrong completion
Product Version: NetBeans IDE Dev (Build 201308222300) Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15 *** Bug 236345 has been marked as a duplicate of this bug. *** The current state exhibits the defect only if a fragment of the value is entered; so if the text contains <scope>p{caret} and completion completes the prefix, the trailing whitespaces are erased. Fixed in jet-main#8b2e051e65e0 The closing tag will not be inserted when multiple nested (same) tags are present. *** Bug 241515 has been marked as a duplicate of this bug. *** Integrated into 'main-silver', will be available in build *201505170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8b2e051e65e0 User: Svata Dedic <sdedic@netbeans.org> Log: #234933: avoid eating whitespaces when completing tag contents. Insert closing tag if missing |
Created attachment 139171 [details] suggestion given: valid pom, adding a dependency manually: ... <dependency> <groupId>javax.json</groupId> <artifactId>javax.json-api</artifactId> <version>1.0</version> <scope>####cursor#### </dependency> ... I type: "prov"<ctrl><space> Netbeans suggests "provided" - great. I hit "return". Result: <scope>provided</dependency> Expected result: <scope>provided</scope> Or at least <scope>provided