From 69a25a8468b8900e682720504a5bb2bea5036539 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 19 May 2020 21:48:21 -0400 Subject: [PATCH] Make doctor treat missing ripgrep as an error It's a hard dependency for Doom. --- core/cli/doctor.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/cli/doctor.el b/core/cli/doctor.el index 5c4dc2f40..3d708368d 100644 --- a/core/cli/doctor.el +++ b/core/cli/doctor.el @@ -102,10 +102,11 @@ in." file (/ size 1024)) (explain! "Consider deleting it from your system (manually)")))) + (unless (executable-find "rg") + (error! "Couldn't find the `rg' binary; this a hard dependecy for Doom, file searches may not work at all")) + (unless (ignore-errors (executable-find doom-projectile-fd-binary)) - (warn! "Couldn't find the `fd' binary; project file searches will be slightly slower") - (unless (executable-find "rg") - (warn! "Couldn't find the `rg' binary either; project file searches will be even slower"))) + (warn! "Couldn't find the `fd' binary; project file searches will be slightly slower")) (require 'projectile) (when (projectile-project-root "~")