From: Michal Krzywkowski Date: Tue, 11 Sep 2018 21:13:56 +0000 (+0200) Subject: Handle case when project was not found in eclipse.jdt.ls contact X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~418 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f3c43b4cac387384359322d1e21e5410a16b3eae;p=emacs.git Handle case when project was not found in eclipse.jdt.ls contact --- 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