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 268143

Summary: Completion of variables when editing build.xml adds extra text
Product: ide Reporter: peterhull90 <peterhull90>
Component: CodeAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10   
Issue Type: DEFECT Exception Reporter:

Description peterhull90 2016-09-21 16:02:18 UTC
Product Version = NetBeans IDE 8.2 RC (Build 201609140952)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_101
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13

Reproducibility: Happens every time

STEPS:
  * Edit the build.xml of a project, the intention is to add a target like this:
    <target name="aaaa">
        <echo message="Ant version is ${ant.version}" />
    </target>
  * Type as far as the $, press CTRL+SPACE
  * List of current ant variables appears
  * Select ant.version and press TAB

ACTUAL:
  Inserted text is "{ant.version}nt version is $"

EXPECTED:
  Inserted text is "{ant.version}"

REPRODUCIBILITY:
  Always. This is just an example, it doesn't matter which variable is selected or where you try to insert it (within a string)