xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

Original tag file deleted/owerwritten after updatetags #103

Open tinypenguin opened 9 years ago

tinypenguin commented 9 years ago

Hello. Testing easytags on a linux kernel. I generated tags file with make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- tags

ls -l tags -rw-r--r-- 1 lpdev users 103791691 Nov 28 01:58 tags

I start using vim editor with following tag settings: Plugin 'xolox/vim-easytags' Plugin 'xolox/vim-misc' let g:easytags_async = 1 let g:easytags_dynamic_files = 1 let b:easytags_auto_highlight = 0 set tags+=tags;/~

I issue command: UpdateTags

After some time of high CPU load PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20709 lpdev 20 0 243m 240m 1556 R 100 6.2 0:12.60 vim
20717 lpdev 20 0 221m 217m 1556 R 100 5.6 0:10.00 vim

I end up with this:

ls -l tags -rw-r--r-- 1 lpdev users 8115 Nov 28 02:02 tags

File shrinked from 99MB of kernel tags to a tags definitions for the file currently edited. What am I doing wrong?

regards, t

mpyatishev commented 8 years ago

+1

ghreyt commented 8 years ago

I had the same thing when

$ tree
.
├── ...
├── configs
│   ├── ...
│   ├── publish.sh
├── ...
└── tags

$ cd configs
$ vi publish.sh

It's fine (no truncation for tags)

$ vi configs/publish.sh

It seems some problem related with async mode.