I have been unable to fix this by downgrading versions for some time. Both newer versions are broken and the above versions are not working for me. Ocamllsp+vscode is the only place I can replicate this. Dune works just fine.
I’d be happy to spend some to fix, but I am currently stuck debugging what’s going on. 1) The error has no location information or call-stack. 2) Simple print/logging to a file seems to break ocamllsp/vscode as it halts/blocks further progress.
Just in case, the error from ocamllsp is:
[Trace - 12:05:32] Received notification 'textDocument/publishDiagnostics'.
Params: {
"uri": "file:///Users/frej/git/ocaml-lsp/fiber-unix/test/barrier_tests.ml",
"diagnostics": [
{
"range": {
"start": {
"line": 1,
"character": 0
},
"end": {
"line": 2,
"character": 0
}
},
"severity": 1,
"source": "ocamllsp",
"message": "I/O error: barrier_tests.ml: No such file or\ndirectory"
}
]
}
Simply removing all ppx_expect tests in a file removed the error