2018-09-21 00:06:12 +01:00
|
|
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
|
|
;;; lang/ocaml/doctor.el
|
|
|
|
|
2019-04-22 03:10:25 -04:00
|
|
|
(assert! (or (not (featurep! +lsp))
|
|
|
|
(featurep! :tools lsp))
|
|
|
|
"This module requires (:tools lsp)")
|
|
|
|
|
2018-09-21 00:06:12 +01:00
|
|
|
(unless (executable-find "ocamlmerlin")
|
2018-10-16 02:45:12 -04:00
|
|
|
(warn! "Couldn't find ocamlmerlin. Lookup, completion and syntax checking won't work"))
|
2018-09-21 00:06:12 +01:00
|
|
|
|
|
|
|
;; Tuareg can still indent
|
|
|
|
(unless (executable-find "ocp-indent")
|
2018-10-16 02:45:12 -04:00
|
|
|
(warn! "Couldn't find ocp-indent. Auto-indentation will be less precise"))
|
2018-09-21 00:06:12 +01:00
|
|
|
|
2019-04-21 19:59:44 -04:00
|
|
|
(when (featurep! :tools eval)
|
2018-09-21 00:06:12 +01:00
|
|
|
(unless (executable-find "utop")
|
|
|
|
(warn! "Couldn't find utop. REPL won't be available")))
|
|
|
|
|
|
|
|
(unless (executable-find "dune")
|
|
|
|
(warn! "Couldn't find dune. Won't be able to highlight dune files"))
|
|
|
|
|
2018-10-16 02:45:12 -04:00
|
|
|
(when (featurep! :editor format)
|
|
|
|
(unless (executable-find "ocamlformat")
|
|
|
|
(warn! "Couldn't find ocamlformat. Code-formatting will be unavailable")))
|