From 77216ab651af1537a1aeaa20d3780dd0820790f3 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Sat, 28 Feb 2026 10:06:36 +0200 Subject: Fix projectile-update-project-type resetting type cache with wrong test When called with :precedence, the function recreated the type cache hash table without :test 'equal, defaulting to eql. Since project roots are strings, no cache key would ever match, causing perpetual re-detection of project types until Emacs was restarted. --- projectile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projectile.el b/projectile.el index 2e3d8cb..4a252e3 100644 --- a/projectile.el +++ b/projectile.el @@ -3188,7 +3188,7 @@ files such as test/impl/other files as below: (if precedence (let ((filtered-types (seq-remove #'project-filter projectile-project-types))) - (setq projectile-project-type-cache (make-hash-table)) + (setq projectile-project-type-cache (make-hash-table :test 'equal)) (cond ((eq precedence 'high) (cons project-type-elt filtered-types)) ((eq precedence 'low) -- cgit v1.0