Building the LSP binary

You don’t know opam

The first thing you want to do is to install and initialize opam:

# install opam
bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)"

# initialize opam
opam init

Then you’ll need a switch with the good version of ocaml to install SuperBOL with.

opam switch create superbol-studio 4.14.1
# you can change the `superbol-studio` by any name you want, just replace it
# in the following occurences

You can now check the next section (You know opam) to install the SuperBOL LSP on your system.

You know opam

First you must clone the repo and install a dependency:

git clone https://github.com/OCamlPro/superbol-studio-oss.git
cd superbol-studio-oss
opam install drom -y

Then you want to install SuperBOL (assuming the targeted install opam switch is superbol-studio):

drom install --switch superbol-studio -y

Once the command is done running, you can check if everything went well with

opam exec -- superbol-free --version