branch: elpa/dart-mode
commit da244c6b9ee2d97c4dfacb93c2ec5f54d35c27de
Author: Brady Trainor <[email protected]>
Commit: Brady Trainor <[email protected]>
Fixes no such file or directory, dartfmt.exe
Rather than dartfmt.exe, code should look for dartfmt.bat.
But in fact, dart-format works fine if we omit the extension. The
conditional for Windows is removed.
---
dart-mode.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dart-mode.el b/dart-mode.el
index 82ddfc6..24ac79d 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -1730,9 +1730,7 @@ This can be customized by setting
`dart-formatter-command-override'."
(when dart-sdk-path
(concat dart-sdk-path
(file-name-as-directory "bin")
- (if (memq system-type '(ms-dos windows-nt))
- "dartfmt.exe"
- "dartfmt")))))
+ "dartfmt"))))
(defvar dart--formatter-compilation-regexp
'("^line \\([0-9]+\\), column \\([0-9]+\\) of \\([^ \n]+\\):" 3 1 2)