From f1fe4d46190263e164ccd1e066095d46a156297f Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Fri, 13 Feb 2026 05:19:58 +0200 Subject: [PATCH] Fix new eglot test failure due to project cache * test/lisp/progmodes/eglot-tests.el (eglot-test-project-wide-diagnostics-rust-analyzer): Bind project-vc-non-essential-cache-timeout to 0 so that the result of project-current is refreshed (bug#80387). --- test/lisp/progmodes/eglot-tests.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lisp/progmodes/eglot-tests.el b/test/lisp/progmodes/eglot-tests.el index 7267754dc7d..ffc097fee74 100644 --- a/test/lisp/progmodes/eglot-tests.el +++ b/test/lisp/progmodes/eglot-tests.el @@ -1017,7 +1017,8 @@ int main() { "fn main() -> i32 { return 42.2;}") ("other-file.rs" . "fn foo() -> () { let hi=3; }")))) - (let ((eglot-server-programs '((rust-mode . ("rust-analyzer"))))) + (let ((eglot-server-programs '((rust-mode . ("rust-analyzer")))) + (project-vc-non-essential-cache-timeout 0)) ;; Open other-file.rs, and see diagnostics arrive for main.rs, ;; which we didn't open. (with-current-buffer (eglot--find-file-noselect "project/other-file.rs")