File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,17 @@ FLUTTER_ROOT environment variable."
102102
103103(defun lsp-dart-dart-command ()
104104 " Return the dart executable from Dart SDK dir."
105- (expand-file-name " bin/dart" (lsp-dart-get-sdk-dir)))
105+ (let ((command (expand-file-name " bin/dart" (lsp-dart-get-sdk-dir))))
106+ (if (file-exists-p command)
107+ command
108+ (lsp-dart-log " Dart command not found in path '%s'" command))))
106109
107110(defun lsp-dart-flutter-command ()
108111 " Return the flutter executable from Flutter SDK dir."
109- (expand-file-name " bin/flutter" (lsp-dart-get-flutter-sdk-dir)))
112+ (let ((command (expand-file-name " bin/flutter" (lsp-dart-get-flutter-sdk-dir))))
113+ (if (file-exists-p command)
114+ command
115+ (lsp-dart-log " Flutter command not found in path '%s'" command))))
110116
111117
112118; ; Project
You can’t perform that action at this time.
0 commit comments