From f3c43b4cac387384359322d1e21e5410a16b3eae Mon Sep 17 00:00:00 2001 From: Michal Krzywkowski Date: Tue, 11 Sep 2018 23:13:56 +0200 Subject: [PATCH] Handle case when project was not found in eclipse.jdt.ls contact --- lisp/progmodes/eglot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index a23e73df835..75d38573e9a 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1959,8 +1959,9 @@ If SKIP-SIGNATURE, don't try to send textDocument/signatureHelp." ((string= system-type "darwin") "config_mac") ((string= system-type "windows-nt") "config_win") (t "config_linux")))) + (project (or (project-current) `(transient . ,default-directory))) (workspace - (expand-file-name (md5 (car (project-roots (project-current)))) + (expand-file-name (md5 (car (project-roots project))) (concat user-emacs-directory "eglot-eclipse-jdt-cache")))) (unless jar -- 2.39.2