Autocomplete for System.Address type variables as incomplete
When a variable has Address or System.Address type (probably other System types are affected as well?) autocomplete and colorization missing the methods, while the generated stub types are correct.
The 4 get* methods showing up are invalid for the Address type though, some kind of default perhaps?
Comments (9)
-
repo owner -
reporter I do have an address type in my project yes.
-
repo owner Okay, and are the methods listed in the first screenshot from that class? If so, it looks like perhaps IC2 is resolving
System.Address
to the localAddress
for some reason. -
reporter Yes that’s correct!
-
repo owner Thanks for confirming. Should give me enough to reproduce, debug, and (hopefully quickly) fix.
-
reporter Sounds good! I have another one, for anonymous apex, opening a new issue.
-
repo owner Sure enough, reproduced immediately. I'll spend a bit of time debugging it this afternoon and hopefully get a fix in the next build.
-
repo owner Fix committed for the next official build:
-
repo owner - changed status to resolved
Delivered in 2.1.8.8.
- Log in to comment
Attila, I'm not seeing the same behavior:
Given the completions that are being offered, e.g., ,
getSObjectType()
, does your OST include an SObject namedAddress
in theSchema
namespace? Or do you have a local class with that name in the project?