vscode-objectscript icon indicating copy to clipboard operation
vscode-objectscript copied to clipboard

Calculated fields do not show in debugger

Open jonlent opened this issue 3 years ago • 2 comments
trafficstars

Isuue

When viewing an object variable that has calculated fields, like the X12Document below, the calculated fields show as what appears to be uninitialized memory content. If the value is evaluated in the debug window, it will show the correct content:

Example

image image

jonlent avatar Aug 08 '22 13:08 jonlent

@jonlent This is caused by the code on the server that gets the object properties. The values for the calculated properties aren't being calculated but that isn't being shown to the user in a friendly way. I think this should be handled in the same manner as MultiDimensional properties, where the property name is still shown, but there is no value displayed:

Screen Shot 2022-08-08 at 3 27 16 PM

I'm against calculating the values because there may be side effects (i.e. the SqlComputeCode updates a global). This is consistent with the way the ZWrite command handled calculated properties.

isc-bsaviano avatar Aug 08 '22 19:08 isc-bsaviano

@jonlent This will be fixed in IRIS 2022.2, 2022.1.2 and 2021.1.3

isc-bsaviano avatar Aug 09 '22 14:08 isc-bsaviano

Closing since the fix for this is in a publicly available kit (2022.2.0.334.0)

isc-bsaviano avatar Sep 14 '22 20:09 isc-bsaviano