From c1947d13cf7ec2e15058f5eea232d9b0c2377d44 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sat, 4 Mar 2017 23:34:57 +0000 Subject: [PATCH] #384 Try and stop stupid errors coming from the gobuild functions --- ale_linters/go/gobuild.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ale_linters/go/gobuild.vim b/ale_linters/go/gobuild.vim index e6ca9f9..0bac9f2 100644 --- a/ale_linters/go/gobuild.vim +++ b/ale_linters/go/gobuild.vim @@ -101,6 +101,12 @@ function! ale_linters#go#gobuild#CopyFiles(buffer, golist_output) abort endfunction function! ale_linters#go#gobuild#GetCommand(buffer, copy_output) abort + " If for some reason we don't get any output from the last command, stop + " here. + if empty(a:copy_output) + return '' + endif + let l:tempdir = a:copy_output[0] let l:importpath = s:PackageImportPath(a:buffer)