summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-09-19 20:35:54 +0100
committerGitHub <noreply@github.com>2019-09-19 20:35:54 +0100
commitb531a4e0b377fbd3863561609479808bb776e805 (patch)
treec816ef4e0eee2932b1672b6b95d967b3c22dbbe3
parentdd6bd6f0fe613b495c5c214e1fcdf88894f85637 (diff)
parentc675212dddbe3cb7288c28d8d86769c5ccc3a8c8 (diff)
downloadale-b531a4e0b377fbd3863561609479808bb776e805.zip
Merge pull request #2653 from AntoineGagne/bugfix/bugged-plt-detection
Fix bug with detection of the PLT in Erlang Dialyzer
-rw-r--r--ale_linters/erlang/dialyzer.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/erlang/dialyzer.vim b/ale_linters/erlang/dialyzer.vim
index 7af64c4f..395647a0 100644
--- a/ale_linters/erlang/dialyzer.vim
+++ b/ale_linters/erlang/dialyzer.vim
@@ -15,10 +15,10 @@ endfunction
function! ale_linters#erlang#dialyzer#FindPlt(buffer) abort
let l:plt_file = ''
let l:rebar3_profile = ale_linters#erlang#dialyzer#GetRebar3Profile(a:buffer)
- let l:plt_file_directory = ale#path#FindNearestDirectory(a:buffer, '_build' . l:rebar3_profile)
+ let l:plt_file_directory = ale#path#FindNearestDirectory(a:buffer, '_build/' . l:rebar3_profile)
if !empty(l:plt_file_directory)
- let l:plt_file = split(globpath(l:plt_file_directory, '/*_plt'), '\n')
+ let l:plt_file = globpath(l:plt_file_directory, '*_plt', 0, 1)
endif
if !empty(l:plt_file)