Mercurial > vim-gutentags
changeset 250:d264db0126c2
Print jobs' stdout and stderr separately to help troubleshooting.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 25 Oct 2019 23:48:08 -0700 |
parents | 36dabe30ab6e |
children | e61d20280c6c |
files | autoload/gutentags.vim |
diffstat | 1 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/autoload/gutentags.vim Mon Aug 05 22:09:31 2019 +0900 +++ b/autoload/gutentags.vim Fri Oct 25 23:48:08 2019 -0700 @@ -578,8 +578,12 @@ echom "" endfunction -function! gutentags#default_io_cb(chan, msg) abort - call gutentags#trace('[job output]: '.string(a:msg)) +function! gutentags#default_stdout_cb(chan, msg) abort + call gutentags#trace('[job stdout]: '.string(a:msg)) +endfunction + +function! gutentags#default_stderr_cb(chan, msg) abort + call gutentags#trace('[job stderr]: '.string(a:msg)) endfunction if has('nvim') @@ -600,10 +604,10 @@ \ ['gutentags#'.a:module.'#on_job_exit']), \'on_stdout': function( \ '<SID>nvim_job_out_wrapper', - \ ['gutentags#default_io_cb']), + \ ['gutentags#default_stdout_cb']), \'on_stderr': function( \ '<SID>nvim_job_out_wrapper', - \ ['gutentags#default_io_cb']) + \ ['gutentags#default_stderr_cb']) \} return l:job_opts endfunction @@ -616,8 +620,8 @@ function! gutentags#build_default_job_options(module) abort let l:job_opts = { \'exit_cb': 'gutentags#'.a:module.'#on_job_exit', - \'out_cb': 'gutentags#default_io_cb', - \'err_cb': 'gutentags#default_io_cb', + \'out_cb': 'gutentags#default_stdout_cb', + \'err_cb': 'gutentags#default_stderr_cb', \'stoponexit': 'term' \} return l:job_opts