Closed mortenhaahr closed 1 year ago
Yes, this is a duplicate of #188 . The type data is now sent to the Client (VSCode) from VDMJ, but it is not (yet) prompted for or added to the launch configuration. As a workaround, you can edit the launch.json entry to include the [type]
part.
I will close this as a duplicate.
It appears that it is impossible to use the VSCode lens to debug a function with type parameters. Please see the simple identity function below followed by steps to reproduce it:
Steps to reproduce:
Launch | Debug
should be shown above the function.Launch
orDebug
.Actual result: An error occurs in the terminal:
identity(1) = Cannot evaluate identity(1) : Error 3350: Polymorphic function has not been instantiated in 'A' (console) at line 1:1
Workaround: Open the
launch.json
file. On the line where it says"command": "p identity(1)"
change this to"command": "p identity[nat](1)"
. Manually debug the function by opening the "Run and Debug" panel (ctrl+shift+D). Press the green button to debug.Expected result: I propose two suggestions: