From 8e6953b3ac6153c5ac193811afc8dabe996f8d02 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 6 May 2019 17:12:28 -0400 Subject: [PATCH] Fix arrayp error when killing Emacs Caused by doom|cleanup-project-cache, when a non-string key is present in projectile-projects-cache (which will be removed). --- core/core-projects.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-projects.el b/core/core-projects.el index e69b3cb5d..d8245f03c 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -58,8 +58,9 @@ c) are not valid projectile projects." (when (bound-and-true-p projectile-projects-cache) (cl-loop with blacklist = (mapcar #'file-truename doom-projectile-cache-blacklist) for proot in (hash-table-keys projectile-projects-cache) - for len = (length (gethash proot projectile-projects-cache)) - if (or (>= len doom-projectile-cache-limit) + if (or (not (stringp proot)) + (>= (length (gethash proot projectile-projects-cache)) + doom-projectile-cache-limit) (member (substring proot 0 -1) blacklist) (and doom-projectile-cache-purge-non-projects (not (doom-project-p proot))))