summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-03-12 16:50:17 +0000
committerGitHub <noreply@github.com>2017-03-12 16:50:17 +0000
commita4ae5ca997c933fa109a850fe0d65615a3af4625 (patch)
treef5b4b450cfd07c8ee3146b9db94789f0abbca403
parent4bf6784d7d1b62c908015117ab30ea19e540636b (diff)
parentf3eab445eeed9ef501df460fad3041df21342825 (diff)
downloadale-a4ae5ca997c933fa109a850fe0d65615a3af4625.zip
Merge pull request #389 from jparise/erlc-output-tmpdir
Write erlc output files to the temporary directory
-rw-r--r--ale_linters/erlang/erlc.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/ale_linters/erlang/erlc.vim b/ale_linters/erlang/erlc.vim
index 8433d9a1..871d4c88 100644
--- a/ale_linters/erlang/erlc.vim
+++ b/ale_linters/erlang/erlc.vim
@@ -3,7 +3,9 @@
let g:ale_erlang_erlc_options = get(g:, 'ale_erlang_erlc_options', '')
function! ale_linters#erlang#erlc#GetCommand(buffer) abort
- return 'erlc ' . g:ale_erlang_erlc_options . ' %t'
+ let l:output_file = tempname()
+ call ale#engine#ManageFile(a:buffer, l:output_file)
+ return 'erlc -o ' . fnameescape(l:output_file) . ' ' . g:ale_erlang_erlc_options . ' %t'
endfunction
function! ale_linters#erlang#erlc#Handle(buffer, lines) abort