doomemacs/modules/lang/fsharp/doctor.el
Henrik Lissner d92920405a
docs(fsharp): add presence check for dotnet fsi
Close: #8315
Co-authored-by: ncihnegn <ncihnegn@users.noreply.github.com>
2025-03-21 22:29:52 -04:00

7 lines
366 B
EmacsLisp

;;; lang/fsharp/doctor.el -*- lexical-binding: t; -*-
(when (require 'fsharp-mode nil t)
(unless (or (cl-some #'fsharp-mode--executable-find '("fsharpc" "fsc"))
(and (executable-find "dotnet")
(zerop (car (doom-call-process "dotnet" "fsi" "--version")))))
(warn! "Cannot find the F# compiler. Most features will not work.")))