Skip to content

Instantly share code, notes, and snippets.

@rusty-key
Last active January 7, 2020 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rusty-key/50a259ccc1dfa45ef7d4b70476c81790 to your computer and use it in GitHub Desktop.
Save rusty-key/50a259ccc1dfa45ef7d4b70476c81790 to your computer and use it in GitHub Desktop.
vscode merlin steps

here's current "from-scratch" setup:

  1. git clone git@github.com:arrowresearch/vscode-merlin.git
  2. Remove vendor source from bsconfig
  3. npm install && npm run package (yarn fails for some reason, didn't investigate), install extension
  4. Upgrade esy to 0.6: npm install -g @esy-nightly/esy
  5. 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"
  }
}
  1. Run esy. If it fails with Library "merlin.specific" not found, clear esy cache manually rm -rf ~/.esy/source/
  2. Restart vscode and enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment