summaryrefslogtreecommitdiff
path: root/ale_linters/elixir
diff options
context:
space:
mode:
authorsharils <sharils@users.noreply.github.com>2018-07-21 19:59:27 +0800
committersharils <sharils@users.noreply.github.com>2018-07-23 21:43:59 +0800
commite3749c4a7526cced0ca54445c2267b470e202538 (patch)
tree569af60dcf6953ed43e0bdaa92c79cc804344c9c /ale_linters/elixir
parent04fbea6e80e010ffc242cc13daed6279f5d5aadf (diff)
downloadale-e3749c4a7526cced0ca54445c2267b470e202538.zip
Fix autoload for phoenix
When dializer isn't a dependency, mix dialyzer recompiles the whole project because it's not possible to know if this command dialyzer exist or not until recompilation is done. Then the timestamps of the project is messed up which results in broken hot-loading. In this case, mix help dialyzer would return zero which prevents compilation of the whole project since dialyzer isn't installed, it's help manual doesn't exist. When dialyzer is a dependency, mix dialyzer would just run the command. In this case, mix help dialyzer would return 1 which allows mix dialyzer to run.
Diffstat (limited to 'ale_linters/elixir')
-rw-r--r--ale_linters/elixir/dialyxir.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/elixir/dialyxir.vim b/ale_linters/elixir/dialyxir.vim
index 5ef3a047..bba0ae14 100644
--- a/ale_linters/elixir/dialyxir.vim
+++ b/ale_linters/elixir/dialyxir.vim
@@ -28,7 +28,7 @@ endfunction
call ale#linter#Define('elixir', {
\ 'name': 'dialyxir',
\ 'executable': 'mix',
-\ 'command': 'mix dialyzer',
+\ 'command': 'mix help dialyzer && mix dialyzer',
\ 'callback': 'ale_linters#elixir#dialyxir#Handle',
\})