-webide-representation
doesn't work for parse instances that were not invoked before
#128
Labels
-webide-representation
doesn't work for parse instances that were not invoked before
#128
Try this example in the Web IDE:
After expanding
a
, the result looks like this:Clearly, the
-webide-representation
key does not work - it should bea [Foo]: 82
instead of justa [Foo]
. For value instances, it does work - try switching to the value instanceinst
by changing-webide-representation: '{inst
in the above snippet._pos:dec}'However, I noticed that the
instPos
is collapsed in the object tree, which means that it uses lazy evaluation and it has not yet been evaluated. So I tried to change-webide-parse-mode
toeager
- that tells the Web IDE not to wait for user interaction before invoking the instance but invoke it right away:inst_pos: pos: 0 type: s1 + -webide-parse-mode: eager
And indeed, the problem gets fixed as soon as the setting is added:
So we need to ensure that fields referenced in
-webide-representation
are invoked if needed.The text was updated successfully, but these errors were encountered: