no autocomplete for structured lists/maps/arrays and structures that share names with keywords
Posted: Sat Aug 05, 2023 8:30 pm
Greetings,
Apologies if this had already been reported, since it does seem like long-standing limitation/bug?
We know that if you try to make an array/list/map/variable that has the same name as a keyword like Return, Break, Continue, etc. an error will appear saying "x can't be named the same as a keyword: y."
However, in cases where it's allowed, the autocomplete doesn't seem to work with these names if they're structured.
And then For other keywords, it seems To be also iffy about what kind of error you get. It reports "x can't be named the same as a keyword: y" For most of them, but other times...
It would be nice If autocomplete could work For the first part of the examples, And optionally more consistent errors For the ones that error would be nice.
Apologies if this had already been reported, since it does seem like long-standing limitation/bug?
We know that if you try to make an array/list/map/variable that has the same name as a keyword like Return, Break, Continue, etc. an error will appear saying "x can't be named the same as a keyword: y."
However, in cases where it's allowed, the autocomplete doesn't seem to work with these names if they're structured.
Code: Select all
NewList List.vector3()
AddElement(List())
Debug List()\x; runs OK, but autocomplete doesn't show the x y z fields if I try to autocomplete after backslash, even with auto-capitalization off
Dim Array.vector3(0)
Debug Array(0)\x; runs OK, but autocomplete doesn't show the x y z fields if I try to autocomplete after backslash, even with auto-capitalization off
NewMap Map.vector3()
Map("test")\x=0
Debug Map("test")\x; runs OK, but autocomplete doesn't show the x y z fields if I try to autocomplete after backslash, even with auto-capitalization off
Code: Select all
Define XOr; no syntax issues
; Debug XOr; "Illegal operator For 'Define'."
; Define XOr.vector3; no syntax issues
; Debug XOr\x; "syntax error"
; NewMap XOr.vector3(); "A Map name needs To start With a character (a-z Or _)."