dark
dark copied to clipboard
F# Analysis result couldn't be converted to OCaml type client expects
An error in converting F# runtime types to OCaml RuntimeTypes
https://github.com/darklang/dark/blob/f12d9bd829aaee4ad561a9af2e59173ad36d9c02/fsharp-backend/src/LibExecution/OCamlTypes.fs#L875
was found
So, that conversion fn needs some update
~deleted bad repro~
'minimal' repro:
RT.EApply(
0UL,
RT.ELambda(0UL, [(0UL, "f")], RT.ENull(0UL)),
[],
RT.InPipe 0UL,
RT.NoRail
)
Actual bug:
The conversion code is set up to handle EApply of EFQFnValue
s, both in and out of pipes, but not ELambda
s
I'm not quite sure how to get to that state in an actual canvas, but should be able to fix regardless.
For now, decided to not manually code against this, instead focusing on removing OCamlTypes from our code, which will resolve this.
regardless, will keep issue open until that's done