]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle case when project was not found in eclipse.jdt.ls contact
authorMichal Krzywkowski <k.michal@zoho.com>
Tue, 11 Sep 2018 21:13:56 +0000 (23:13 +0200)
committerMichal Krzywkowski <k.michal@zoho.com>
Thu, 18 Oct 2018 12:47:48 +0000 (14:47 +0200)
lisp/progmodes/eglot.el

index a23e73df83574e0ab5c6f5e7c107a93ced467e90..75d38573e9aedf5c8d5124d0e1405f4f79b54367 100644 (file)
@@ -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