Open seantalts opened 5 years ago
I just get it working! With this configuration:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "OCaml",
"type": "ocaml-debugger",
"request": "launch",
"program": "${workspaceRoot}/_build/default/stanc.bc",
"dotMerlins": ["${workspaceRoot}/.merlin", "${workspaceRoot}/lib/.merlin"],
"arguments": ["${workspaceRoot}/test/integration/examples-good/declarations.stan"],
"console": "internalConsole",
"stopOnEntry": false
}
]
}
I'm still getting the same thing where it flashes red for a second and then nothing... I do have this in the "Extensions Output":
Fatal error: exception Not_found
Raised at file "hashtbl.ml", line 188, characters 6-21
Called from file "ocaml_debug_adapter/symbols.ml" (inlined), line 213, characters 2-37
Called from file "ocaml_debug_adapter/inspect.ml", line 54, characters 17-47
Called from file "src/core/lwt.ml", line 1929, characters 23-26
Re-raised at file "ocaml_debug_adapter/inspect.ml", line 52, characters 6-720
Re-raised at file "ocaml_debug_adapter/inspect.ml", line 50, characters 4-875
Re-raised at file "ocaml_debug_adapter/inspect.ml", line 76, characters 4-220
Re-raised at file "ocaml_debug_adapter/inspect.ml", line 97, characters 6-743
My dune dev profile is:
(dev
(flags (:standard -g)))
Perhaps that's not enough?
Thanks for your help!
I use earlybird 0.1.4 and ocaml 4.06.1
I didn't change your build file. But only run dune build stanc.bc
.
I'm using Dune with this project: https://github.com/stan-dev/stanc3. Dune will build a bytecode or executable file in _build/default/. Here's my launch config:
With the stanc.exe option, it just hangs forever. If I change it to stanc.bc, it does something for a second and then flashes red at the bottom. No errors I can find anywhere.