docs(fsharp): add presence check for dotnet fsi

Close: #8315
Co-authored-by: ncihnegn <ncihnegn@users.noreply.github.com>
This commit is contained in:
Henrik Lissner
2025-03-19 01:24:51 -04:00
parent 32368d0e94
commit d92920405a

View File

@ -1,5 +1,7 @@
;;; lang/fsharp/doctor.el -*- lexical-binding: t; -*-
(when (require 'fsharp-mode nil t)
(unless (cl-some #'fsharp-mode--executable-find '("fsharpc" "fsc"))
(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.")))