Merge pull request #389 from jparise/erlc-output-tmpdir

Write erlc output files to the temporary directory
This commit is contained in:
w0rp 2017-03-12 16:50:17 +00:00 committed by GitHub
commit a4ae5ca997

View File

@ -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