ocaml-lsp
ocaml-lsp copied to clipboard
error when using unboxed-types
I upgraded from 1.0 to 1.4 and now see the error [ocamllsp] [E] unknown flag -unboxed-types
in vim using coc. I grepped for the flag and it shows up in the generated .merlin files, so perhaps this is a change the merlin, which may also have been updated. An example line is
./lib/.merlin:FLG -open Lib -w @[email protected]@30..39@[email protected]@[email protected] -strict-sequence -strict-formats -short-paths -keep-locs -w @A-42-44-48-45-4-30 -unboxed-types -short-paths
Is this still an issue with the latest version? We've updated our merlin since.
I'm having trouble building the master branch with opam2nix right now:
File "lsp/src/import.ml", line 163, characters 10-28:
163 | List.partition_map xs ~f:(fun (k', v') ->
^^^^^^^^^^^^^^^^^^
Error: Unbound value List.partition_map
You're using an old version of OCaml I bet. partition_map was introduced in 4.12
That was it. So lsp only supports 4.12+?
ocaml-lsp-server is already 4.12. I suppose it isn't ideal to impose this on the lsp library. So I backported partition_map.
I still get the same error with the latest.