branch: elpa/dart-mode
commit c11d02ab6a912abb675b0b7e331aca883ffbae30
Author: dickmao <[email protected]>
Commit: Brady Trainor <[email protected]>
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.