emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode faf6d98b3e 1/4: Make compilation buffer workspac


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode faf6d98b3e 1/4: Make compilation buffer workspace-aware
Date: Thu, 25 Aug 2022 09:59:15 -0400 (EDT)

branch: elpa/rust-mode
commit faf6d98b3e2a386f3f37079f9bb6de11a7bce6cc
Author: yanchith <yanchi.toth@gmail.com>
Commit: yanchith <yanchi.toth@gmail.com>

    Make compilation buffer workspace-aware
    
    This fixes incorrect paths for workspace projects when running starting
    compilation from a source file instead of the project root.
---
 rust-cargo.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust-cargo.el b/rust-cargo.el
index 0c35ddb150..75f9c16cc7 100644
--- a/rust-cargo.el
+++ b/rust-cargo.el
@@ -44,7 +44,7 @@
         (setq-local process-environment env)
         ;; Set PATH so we can find cargo.
         (setq-local exec-path path)
-        (let ((ret (call-process rust-cargo-bin nil t nil "locate-project")))
+        (let ((ret (process-file rust-cargo-bin nil (list (current-buffer) 
nil) nil "locate-project" "--workspace")))
           (when (/= ret 0)
             (error "`cargo locate-project' returned %s status: %s" ret 
(buffer-string)))
           (goto-char 0)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]