PHP, JS, OCaml
Nuclide provides support for other languages as well. Some of these are not as full-featured as similar languages (e.g., Hack vs PHP); others are experimental.
Nuclide’s PHP support is similar to its support for Hack, except you will not get as full-featured diagnostics, type hinting, etc. since there is no typechecker to assist Nuclide with your project’s metadata.
This experimental feature provides rudimentary support for OCaml via
ocamlmerlin. Merlin can be installed from source
or by installing the
merlin OPAM package.
OCaml’s integration into Nuclide provides you with productivity features such as:
- Jump to Definition
It requires that
ocamlmerlin be installed on your system and properly configured for your
ocamlmerlin should be in your
$PATH environment variable. If it is not, you may specify the path to
ocamlmerlin in the settings for the ‘nuclide’ package.
- Open the Nuclide Settings tab either by pressing
Ctrl-,on Linux) or by going to
Package | Settings View | Open.
- Select Packages from the list at the left, and search for
- Click on the Settings button for the
- Scroll down until you find
nuclide-ocaml, and enter the custom path in the Path to Merlin Executable text box.