Open ulugbekna opened 2 years ago
I'd say this is a dune issue rather than an LSP issue. But more concretely, we should be able to address things the following way:
ocamlc-loc
to understand this particular error betterPS:
have better formatting
This should be improved across the board in 3.3.1
Improve ocamlc-loc to understand this particular error better
But is ocamlc-loc intended to recognize merlin errors (which seem to be different from compiler ones in some cases)
For example, the compiler reports
Warning 26 [unused-var]: unused variable b.
which is reported by merlin as
Error (warning 26): unused variable b.
Am I missing something?
Merlin reuses the compiler api for printing errors so the distinction is usually a matter of flags + version differences. So we should be able to use the same api.
For example, the compiler reports
I'm pretty sure ocamlc-loc handles both as of today.
Example:
Here we could
edit: