Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4406

Unable to type in 2 consecutive curly brackets in a YAML file if there's no closing pair of curly brackets first

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 12.0, 11.3
    • 12.0
    • yaml - Editor
    • None

    Description

      Create a new project (I have tried html and php)

      Create a new yaml file

      try and type in

      - this: {{ }}

      After the first open bracket, you can't type in the second.

       If you type in the closing pair of curly brackets, you can then go back and type in the second of the opening curly brackets in the following sequence:

      - this: {
      - this: { }
      - this: { }}
      - this: {{ }}

      This is not ideal, and should allow the double-open curly bracket straight away.

      If you are editing above an already-complete set of curly brackets, you can enter the opening pair in correctly - see "that" below

      - that: {{ }}
      - this: {{ }}
      - other: {

      Attempting to enter a line after the last complete set ("other", above) is prevented by the system again.

      A workaround at the moment is to add a closing pair of curly brackets at teh bottom of the document, but this is not ideal.

       This works OK in 11.2, not in 11.3, not working in 12.0 beta 4

       

      Environment:
      Product Version: Apache NetBeans IDE 12.0-beta4

      Java: 13.0.2; Java HotSpot(TM) 64-Bit Server VM 13.0.2+8

      Runtime: Java(TM) SE Runtime Environment 13.0.2+8

      System: Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb)

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kevinll21 Kevin Jones
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: