From 1352f8a9aaf5cef28f6509e607a8be1905180387 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 6 Aug 2021 03:11:55 -0400 Subject: [PATCH] fix: args-out-of-range when cleaning project cache Caused when the key of a cached project is an empty string. Fix #5345 --- core/core-projects.el | 1 + 1 file changed, 1 insertion(+) diff --git a/core/core-projects.el b/core/core-projects.el index bffd26c2f..32860d3fe 100644 --- a/core/core-projects.el +++ b/core/core-projects.el @@ -126,6 +126,7 @@ c) are not valid projectile projects." (cl-loop with blacklist = (mapcar #'file-truename doom-projectile-cache-blacklist) for proot in (hash-table-keys projectile-projects-cache) if (or (not (stringp proot)) + (string-empty-p proot) (>= (length (gethash proot projectile-projects-cache)) doom-projectile-cache-limit) (member (substring proot 0 -1) blacklist)