here's current "from-scratch" setup:
git clone git@github.com:arrowresearch/vscode-merlin.git
- Remove
vendor
source frombsconfig
npm install && npm run package
(yarn fails for some reason, didn't investigate), install extension- Upgrade
esy
to 0.6:npm install -g @esy-nightly/esy
- Add
esy.json
to your project:
{
"devDependencies": {
"@opam/ocaml-lsp-server": "*",
"ocaml": "4.06.1"
},
"resolutions": {
"@opam/ocaml-lsp-server": "github:ocaml/ocaml-lsp:ocaml-lsp-server.opam#821edf2"
}
}
- Run
esy
. If it fails withLibrary "merlin.specific" not found
, clear esy cache manuallyrm -rf ~/.esy/source/
- Restart vscode and enjoy