运行gtags -v 报错:

input buffer overflow, can't enlarge buffer because scanner uses REJECT
gtags: command failed in xargs_read().

解决方案:

1、在home目录下新建一个文件.globalrc,内容参照 https://github.com/shibayu36/config-file/blob/master/.globalrc 。 

2、找到上述文件中的

 :skip=GPATH,GTAGS,GRTAGS,yourexcludedddir/:

3、将yourexcludedddir替换为需要排除的目录,yourexcludedddir为相对路径。

4、重新运行gtags -v 即可。