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

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

[nongnu] elpa/dart-mode 9db2679 143/192: Fixes invalid file path format


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode 9db2679 143/192: Fixes invalid file path format on Windows
Date: Sun, 29 Aug 2021 11:02:06 -0400 (EDT)

branch: elpa/dart-mode
commit 9db2679f1d933377c0d45c01e37721e6f45813f1
Author: Brady Trainor <mail@bradyt.com>
Commit: Brady Trainor <mail@bradyt.com>

    Fixes invalid file path format on Windows
---
 dart-mode.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dart-mode.el b/dart-mode.el
index deb9323..82ddfc6 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -918,7 +918,10 @@ otherwise.  If no FILE is given, then this will default to 
the variable
 The analysis roots are directories that contain Dart files. The analysis server
 analyzes all Dart files under the analysis roots and provides information about
 them when requested."
-  (add-to-list 'dart-analysis-roots dir)
+  (add-to-list 'dart-analysis-roots
+               (if (equal system-type 'windows-nt)
+                   (replace-regexp-in-string (rx "/") (rx "\\") dir)
+                 dir))
   (dart--send-analysis-roots))
 
 (defun dart--send-analysis-roots ()



reply via email to

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