We were able to make Spacemacs connect to ocamlmerlin
in a Docker container. It definitely works
in Spacemacs, and should work anywhere else. Please comment below if you can't make it work.
opam
and ocamlmerlin
are copies of the same file. ocp-indent
, refmt
, and other executables can
be handled the same way.
The magic happens in run-in-docker. You most likely need to change the sed
commands in
fix_dirs_stdin
and fix_dirs_stdout
.
I've included a sample Dockerfile
that we use with 4.04.2, note the env vars are important.
We keep all these scripts in our scripts/
directory, and always call them from the immediate
parent direction. If you don't do that, I wouldn't expect these to work perfectly.
We're hiring: https://darklang.com