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

Properties representing arrays generate sintaxys errors

    XMLWordPrintableJSON

Details

    Description

      Hi there,

       

      I've been developing some stuffs with Spring framework and notice this error.

      In Spring Boot there's a properties file. This file (application.properties) is well recognized by Netbeans (I can get some code completion and hints, etc...) but some of the objects are arrays, and must be specify in this way:

      spring.cloud.gateway.routes[0].uri

      spring.cloud.gateway.routes[0].id

      ... and so forth.

      Well, the problem comes because Netbeans detects an error when using indexed array like  [0] or [1] ... 

       

      The error displayed is:

      Invalid input '.', expected whitespace, separator, eolChar or EOI

      Unknown Spring Boot property 'id'


      (Alt-Enter shows hints)

       

      I think the editor should detect when an object is a Collection (a list or array) and allows to use index for that properties...

       

      This is the screenshot:

       

      https://1drv.ms/u/s!Aia5EKntNR-LgZgFKZmmQYSCUZa5TQ?e=1WrDbm

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            victor.bombella Victor Francisco Bombella Hernández
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: