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

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

[nongnu] elpa/dart-mode c11d02a 137/192: Remedy invalid file path format


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode c11d02a 137/192: Remedy invalid file path format
Date: Sun, 29 Aug 2021 11:02:05 -0400 (EDT)

branch: elpa/dart-mode
commit c11d02ab6a912abb675b0b7e331aca883ffbae30
Author: dickmao <rchiang@cs.stonybrook.edu>
Commit: Brady Trainor <mail@bradyt.com>

    Remedy invalid file path format
    
    Fixes issue #64. Rebased author's solution onto commit with failing
    test.
---
 dart-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dart-mode.el b/dart-mode.el
index a44808b..474a43d 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -910,8 +910,8 @@ otherwise.  If no FILE is given, then this will default to 
the variable
          (pub-root (locate-dominating-file file-to-add "pubspec.yaml"))
          (current-dir (file-name-directory file-to-add)))
     (if pub-root
-        (dart-add-to-analysis-roots (expand-file-name pub-root))
-      (dart-add-to-analysis-roots (expand-file-name current-dir)))))
+        (dart-add-to-analysis-roots (directory-file-name (expand-file-name 
pub-root)))
+      (dart-add-to-analysis-roots (directory-file-name (expand-file-name 
current-dir))))))
 
 (defun dart-add-to-analysis-roots (dir)
   "Add DIR to the analysis server's analysis roots.



reply via email to

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