did anyone manage to find out how to use the above mentioned new sub command?from the description it seems like this is a language server but i can’t wrap my head around how to actually use it with vscode for example.
at first i thought if the command is running and you modify the code it’ll show you errors and so on, i also tried typing code in it like an interpreter. no success either
i would appreciate if someone could point me to the right direction.
dp$ dfx ide
The Motoko Language Server returned an error:
Fatal error: exception (Invalid_argument "String.sub / Bytes.sub")
Raised at file "pervasives.ml", line 33, characters 20-45
Called from file "string.ml" (inlined), line 47, characters 2-23
Called from file "languageServer/languageServer.ml", line 125, characters 11-112
Called from file "exes/mo_ide.ml", line 37, characters 5-35
didn’t really help me though, did anyone make it work? @hansl can you give me a hint? i guess i would need to write a VSCode extension for example? the docs out there show how to write a LS extension, but i don’t get how to make it work with binaries is there a simple way to invoke this with VSCode?