Victor Francisco Bombella Hernández created NETBEANS-6052:
-------------------------------------------------------------
Summary: Properties representing arrays generate sintaxys errors
Key: NETBEANS-6052
URL: https://issues.apache.org/jira/browse/NETBEANS-6052
Project: NetBeans
Issue Type: Bug
Components: editor - Hints & Annotations, editor - Lexer
Affects Versions: 12.5
Reporter: Victor Francisco Bombella Hernández
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists