ludovicchabant/vim-gutentags

gutentags make the /tmp directory run out of space in fedora 32

zoumi opened this issue · 4 comments

zoumi commented

When I startup gvim with gutentags enabled the space usage of /tmp grow rapidly.
I'm using Fedora32 64bit in VirtualBox.
I had set g:gutentags_cache_dir = expand('~/.cache/tags')

Gvim version:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 31 2020 00:00:00)
Included patches: 1-1551
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks  Used Available Use% Mounted on
tmpfs            2011404    16   2011388   1% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks   Used Available Use% Mounted on
tmpfs            2011404 102204   1909200   6% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks   Used Available Use% Mounted on
tmpfs            2011404 669788   1341616  34% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks   Used Available Use% Mounted on
tmpfs            2011404 838948   1172456  42% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks   Used Available Use% Mounted on
tmpfs            2011404 969548   1041856  49% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks    Used Available Use% Mounted on
tmpfs            2011404 1087708    923696  55% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks    Used Available Use% Mounted on
tmpfs            2011404 1256868    754536  63% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks    Used Available Use% Mounted on
tmpfs            2011404 1380004    631400  69% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks    Used Available Use% Mounted on
tmpfs            2011404 1540456    470948  77% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks    Used Available Use% Mounted on
tmpfs            2011404 1898676    112728  95% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks    Used Available Use% Mounted on
tmpfs            2011404 1924772     86632  96% /tmp
[root@localhost tmp]# df /tmp
Filesystem     1K-blocks    Used Available Use% Mounted on
tmpfs            2011404 1924772     86632  96% /tmp
[root@localhost tmp]# ls -l /tmp
total 1924756
drwx------. 2 zoumi zoumi         40 Sep 30 10:36 cscope.5109
-rw-------. 1 zoumi zoumi 1970950144 Sep 30 10:36 tags.kgb57f
drwx------. 2 zoumi zoumi         60 Sep 30 10:36 v8gCgfP
zoumi commented

If I remove this line from vimrc, the usage of /tmp doesn't grow.
let $GTAGSLABEL='pygments-parser'

What does $GTAGSLABEL do?

Can you identify the process that fills up the temp directory? (probably a gtags process?) This way you could look at its command line and figure out what it's doing.

zoumi commented

@ludovicchabant
gtags will read environment var $GTAGSLABEL to call the correct parser.

For my situation, this problem only happens when I open vimrc in ~/.vim, then gtags will try to generate tags for all plugins under ~/.vim/plugged. So I tell gutentags ignore the path "~/.vim", it does not happen now.

I think it's a bug of gtags, so I will close this issue.
Thank you!

Ok thanks!