pebble-intellij
pebble-intellij copied to clipboard
Pebvariable annotations for arrays don't set the correct type for objects inside the array
If you write this:
{# @pebvariable name="results" type="smithereen.data.SearchResult[]" #}
{% for res in results %}
...
{% endfor %}
The plugin won't pick up the type of the objects in the array, instead thinking they're java.lang.Object
s:
Or maybe I'm not specifying arrays/collections correctly, but adding
[]
is the most obvious way so it would make sense to support it if it's not supported.
Trying to output a property of an array element produces an even weirder error:
FTR subtypes of java.lang.Iterable
and scala.collection.Iterable
are already supported:
I'll throw in support for arrays too.