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

Tags not generating or inaccurate documentation #140

Open still-dreaming-1 opened 8 years ago

still-dreaming-1 commented 8 years ago

I'm still learning how to use this, but so far I can note that it is not working as described. According to the installation instructions:

Now try it out: Edit any file type supported by Exuberant Ctags and within ten seconds the plug-in should create/update your tags file (~/.vimtags on UNIX, ~/_vimtags on Windows) with the tags defined in the file you just edited!

But instead of doing that, it is only creating tags for files under my config directory.

still-dreaming-1 commented 8 years ago

On a related note, if I run :UpdateTags manually, files outside the home vim config directory will have tags created for them. But the options are being ignored, and they are only getting created in the global tags file, even though I am using these options, and I created a blank tags file for it to use for specific projects:

set tags=./tags
let g:easytags_async = 1
let g:easytags_dynamic_files = 1
still-dreaming-1 commented 8 years ago

Ok, so as you can see in the code above, I was missing a semicolon at the end of the set tags= line. Now that this is fixed, things are a little better, but still not working right. Sometimes tags are saved in the project tags file, sometimes they are saved in the global tags file, but syntax highlighting does not work. I also have this in my config:

let g:easytags_events = ['BufWritePost']

After creating a file and class, even though tags are working, syntax highlighting is not. After saving once, syntax highlighting is still not working, but after saving a second time it starts working. But at that point, the project tags file which used to have lots of useful tags in it, now only has tags generated from parsing that one file.