Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

easytags plugin not generating tags automatically #150

Open
hatelove85911 opened this issue Sep 8, 2016 · 3 comments
Open

easytags plugin not generating tags automatically #150

hatelove85911 opened this issue Sep 8, 2016 · 3 comments

Comments

@hatelove85911
Copy link

I have xolox/vim-easytags and xolox/vim-misc installed. I have following configuration in vimrc:

let g:easytags_dynamic_files = 1
let g:easytags_on_cursorhold = 1
let g:easytags_updatetime_min = 4000
let g:easytags_auto_update = 1
let g:easytags_async = 1
let g:easytags_by_filetype = '~/tagfiles'
let g:easytags_languages = {
\   'javascript': {
\     'cmd': 'jsctags',
\       'args': ['-f']
\   }
\}

and the g:easytags_events's value is: ['BufWritePost', 'CursorHold', 'CursorHoldI']
tags option value is: ./tags,./TAGS,tags,TAGS,~/.vimtags,~/tagfiles/javascript

Now I stop moving cursor for 10 seconds in normal mode, the tags is not updated to ~/.vimtags or any other possible tag files, what's the problem here?

But tags will be updated when I write the buffer to file.

@ghost
Copy link

ghost commented Dec 5, 2016

Also experiencing this issue.

@rosscreighton
Copy link

also having this issue

@alex-shamshurin
Copy link

alex-shamshurin commented May 10, 2017

Because it cannot build correct jsctags command line from these options. The source code of the plugin may be easily changed, but I do not know viml and cannot make it work for other utilities too. To make it work for jsctags only it's needed to patch autoload/xolox/easytags.vim file
Patch is https://gist.github.com/alex-shamshurin/915110bc3d2bfda211ae33330399713b
. Config is

let g:easytags_languages = {
\   'javascript': {
\     'cmd': 'jsctags',
\       'args': [],
\   }
\}

See #136

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants