branch: elpa/projectile
commit 85ed45e80d0e12150548c80928f3da3e701e2313
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Use expand-file-name instead of file-truename in compilation-dir
    
    file-truename resolves symlinks via synchronous I/O, which can hang
    Emacs when the project is on a remote host via TRAMP.  expand-file-name
    is sufficient here (it normalizes path components) and works safely
    with remote paths.
---
 projectile.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/projectile.el b/projectile.el
index 9f12976761..fe0e3d47f0 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5411,9 +5411,7 @@ project of that type"
          (comp-dir (or projectile-project-compilation-dir
                         (projectile-default-compilation-dir type))))
     (if comp-dir
-        (file-truename
-         (concat (file-name-as-directory project-root)
-                 (file-name-as-directory comp-dir)))
+        (expand-file-name (file-name-as-directory comp-dir) project-root)
       project-root)))
 
 (defun projectile-maybe-read-command (arg default-cmd prompt)

Reply via email to