diff options
author | Aryeh Leib Taurog <git@aryehleib.com> | 2019-01-04 08:57:14 +0200 |
---|---|---|
committer | Aryeh Leib Taurog <git@aryehleib.com> | 2019-01-04 09:55:35 +0200 |
commit | 1f21eb0c422e8ae351981544a7e0da4f369e6144 (patch) | |
tree | 9d005542c9d20048f6f6fccbc5572686714cd809 /ale_linters/elm | |
parent | 4a11a6337e37a1e3b5ad28f77f15979ccd47d587 (diff) | |
download | ale-1f21eb0c422e8ae351981544a7e0da4f369e6144.zip |
fallback to elm if elm-tests isn’t available
Diffstat (limited to 'ale_linters/elm')
-rw-r--r-- | ale_linters/elm/make.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim index 37b8d07c..76622028 100644 --- a/ale_linters/elm/make.vim +++ b/ale_linters/elm/make.vim @@ -209,7 +209,11 @@ function! ale_linters#elm#make#GetExecutable(buffer) abort let l:is_v19 = ale_linters#elm#make#IsVersionGte19(a:buffer) if l:is_test && l:is_v19 - return ale#node#FindExecutable(a:buffer, 'elm_make', ['node_modules/.bin/elm-test']) + return ale#node#FindExecutable( +\ a:buffer, +\ 'elm_make', +\ ['node_modules/.bin/elm-test', 'node_modules/.bin/elm'] +\ ) else return ale#node#FindExecutable(a:buffer, 'elm_make', ['node_modules/.bin/elm']) endif |