vim-easytags icon indicating copy to clipboard operation
vim-easytags copied to clipboard

Original tag file deleted/owerwritten after updatetags

Open tinypenguin opened this issue 11 years ago • 2 comments

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

tinypenguin avatar Nov 28 '14 01:11 tinypenguin

+1

mpyatishev avatar Aug 26 '15 06:08 mpyatishev

I had the same thing when

  • set g:easytags_async = 1
  • and make easytags update tags under child directory of where tags is
    for example, edit and save publish.sh under ./configs
$ tree
.
├── ...
├── configs
│   ├── ...
│   ├── publish.sh
├── ...
└── tags

$ cd configs
$ vi publish.sh

It's fine (no truncation for tags)

  • if update publish.sh under ./ like
$ vi configs/publish.sh
  • or set g:easytags_async = 0 and update the file anywhere

It seems some problem related with async mode.

ghreyt avatar Mar 04 '16 03:03 ghreyt