Open yminsky opened 2 years ago
Hi, thanks for the report!
I'd like to reproduce the problem, but I don't get any errors when the ml and corresponding mli file mismatch (merlin doesn't detect such mismatches in general, to my understanding). Do you have your project available online somewhere?
re: unclear error message The error message is indeed unclear. I'll see if we can improve that.
re: actionable error There's an ongoing work for dune RPC integration in ocaml-lsp & this extension, so we should in future be able to suggest the user some actions to fix these errors.
Oddly, I've had trouble reproducing it on a small example. I'm not sure why.
I've noticed that the plugin does not do a good job of reporting mismatches between the ml and mli. In the project in question, running dune produces an actionable error message:
But in vscode, the error shows up by underlining the open declaration at the top of the file, and the text of the error is:
which is not especially helpful.