Skip to content

Commit

Permalink
BobProject: Show used query path and query result in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasFeher committed Feb 29, 2024
1 parent c3eb0fa commit f6648df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/vim-bob.vim
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ function! s:QueryPaths(package_list, query_params)
" (which need the compilation databases from the build directories)
let l:command = 'cd ' . shellescape(s:bob_base_path) . '; bob query-path --fail -f "{name} | {src} | {build}" ' . join(a:query_params, ' ') . ' ' . join(a:package_list, ' ') . ' 2>&1'
let l:result = split(s:RemoveInfoMessages(system(l:command)), "\n")
if g:bob_verbose
echom ' ' . l:command
echom ' ' . join(l:result)
endif
if v:shell_error
" Remove the erroneous package from the package list and retry.
" parse package name that failed
Expand Down

0 comments on commit f6648df

Please sign in to comment.