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

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

[nongnu] elpa/dart-mode 47dc5a0 146/192: Fixes flycheck in Windows


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode 47dc5a0 146/192: Fixes flycheck in Windows
Date: Sun, 29 Aug 2021 11:02:07 -0400 (EDT)

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

    Fixes flycheck in Windows
---
 dart-mode.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dart-mode.el b/dart-mode.el
index 24ac79d..a9c0de7 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -1057,7 +1057,10 @@ SUBSCRIPTION is an opaque object provided by
   (dart-info (format "Checking syntax for %s" (current-buffer)))
   (dart--analysis-server-send
    "analysis.getErrors"
-   `((file . ,(buffer-file-name)))
+   `((file . ,(if (equal system-type 'windows-nt)
+                  (replace-regexp-in-string (rx "/") (rx "\\")
+                                            (buffer-file-name))
+                (buffer-file-name))))
    (-let [buffer (current-buffer)]
      (lambda (response)
        (dart--report-errors response buffer callback)))))



reply via email to

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