2018-05-15 13:50:58 +02:00
|
|
|
;;; lang/ruby/doctor.el -*- lexical-binding: t; -*-
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +lsp))
|
|
|
|
(modulep! :tools lsp))
|
2019-04-22 03:10:25 -04:00
|
|
|
"This module requires (:tools lsp)")
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
|
|
(modulep! :tools tree-sitter))
|
2021-10-19 19:26:26 +01:00
|
|
|
"This module requires (:tools tree-sitter)")
|
|
|
|
|
2018-05-15 13:50:58 +02:00
|
|
|
(unless (executable-find "ruby")
|
|
|
|
(warn! "Ruby isn't installed."))
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (and (executable-find "rbenv") (modulep! +rbenv))
|
2018-05-15 13:50:58 +02:00
|
|
|
(unless (split-string (shell-command-to-string "rbenv versions --bare") "\n" t)
|
|
|
|
(warn! "No versions of ruby are available via rbenv, did you forget to install one?")))
|
2020-03-09 18:04:10 +00:00
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (and (executable-find "chruby") (modulep! +chruby))
|
2020-03-09 18:04:10 +00:00
|
|
|
(unless (split-string (shell-command-to-string "chruby") "\n" t)
|
|
|
|
(warn! "No versions of ruby are available via chruby, did you forget to install one?")))
|