From 4c70cfd102adcdf9d1ffa72cd12ea69f9501fa29 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 22 Jul 2019 06:28:32 +0200 Subject: [PATCH] Fix hash-table-p errors loading projectile I was reading from a file without making sure it exists! --- core/core-projects.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/core-projects.el b/core/core-projects.el index 1192f7b5c..edb0392d2 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -124,7 +124,9 @@ c) are not valid projectile projects." :before #'projectile-serialize-cache (projectile-serialize projectile-projects-cache-time doom-projectile-cache-timer-file)) ;; Restore it - (setq projectile-projects-cache-time (projectile-unserialize doom-projectile-cache-timer-file)) + (when (file-readable-p doom-projectile-cache-timer-file) + (setq projectile-projects-cache-time + (projectile-unserialize doom-projectile-cache-timer-file))) (def-advice! doom--projectile-default-generic-command-a (orig-fn &rest args) "If projectile can't tell what kind of project you're in, it issues an error