# HG changeset patch # User Ludovic Chabant # Date 1572072488 25200 # Node ID d264db0126c26ca0e75eeb45efa83eca7b839a03 # Parent 36dabe30ab6ed5c09c19d686d1377639eccf2eb2 Print jobs' stdout and stderr separately to help troubleshooting. diff -r 36dabe30ab6e -r d264db0126c2 autoload/gutentags.vim --- 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( \ 'nvim_job_out_wrapper', - \ ['gutentags#default_io_cb']), + \ ['gutentags#default_stdout_cb']), \'on_stderr': function( \ '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