Merge pull request #389 from jparise/erlc-output-tmpdir
Write erlc output files to the temporary directory
This commit is contained in:
commit
a4ae5ca997
@ -3,7 +3,9 @@
|
|||||||
let g:ale_erlang_erlc_options = get(g:, 'ale_erlang_erlc_options', '')
|
let g:ale_erlang_erlc_options = get(g:, 'ale_erlang_erlc_options', '')
|
||||||
|
|
||||||
function! ale_linters#erlang#erlc#GetCommand(buffer) abort
|
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
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#erlang#erlc#Handle(buffer, lines) abort
|
function! ale_linters#erlang#erlc#Handle(buffer, lines) abort
|
||||||
|
Loading…
x
Reference in New Issue
Block a user