From fd16719324429be0bb64f858db0886afc730e9a0 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 15 May 2018 13:50:58 +0200 Subject: [PATCH] lang/{python,ruby}: add doctor.el --- modules/lang/python/doctor.el | 8 ++++++++ modules/lang/ruby/doctor.el | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 modules/lang/python/doctor.el create mode 100644 modules/lang/ruby/doctor.el diff --git a/modules/lang/python/doctor.el b/modules/lang/python/doctor.el new file mode 100644 index 000000000..89aeb9e68 --- /dev/null +++ b/modules/lang/python/doctor.el @@ -0,0 +1,8 @@ +;;; lang/python/doctor.el -*- lexical-binding: t; -*- + +(unless (executable-find "python") + (warn! "Python isn't installed.")) + +(when (executable-find "pyenv") + (unless (split-string (shell-command-to-string "pyenv versions --bare") "\n" t) + (warn! "No versions of python are available via pyenv, did you forget to install one?"))) diff --git a/modules/lang/ruby/doctor.el b/modules/lang/ruby/doctor.el new file mode 100644 index 000000000..7050b4f28 --- /dev/null +++ b/modules/lang/ruby/doctor.el @@ -0,0 +1,8 @@ +;;; lang/ruby/doctor.el -*- lexical-binding: t; -*- + +(unless (executable-find "ruby") + (warn! "Ruby isn't installed.")) + +(when (executable-find "rbenv") + (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?")))