You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some details here:
1, tags file is being generated correct, messages is clean. (generated by Plug 'ludovicchabant/vim-gutentags')
2, I can use ctrl+] and ctrl+T to jump tag.(use tags generated by vim-gutentags)
3, call :Tagbar will get an window has "No tags found"
4, I delete tags file and try ctrl+] will raise tag file not found error, which is exptected.
5, It's same wheather I add let g:tagbar_ctags_bin='jsctags' manually or not.
6, The js code is AMD way
As your last line says, this seems to be an issue with jsctags not being able to parse your files properly, resulting in it not outputting any tags. After looking at the vim-gutentags project and your configuration it seems to me that your tags file is being generated by plain ctags, not jsctags. Ctags is probably able to find various tags, hence allowing you to jump to them, but is maybe not that great with detecting the structure.
So the problem seems to be with jsctags. I would recommend opening an issue with that project.
Some details here:
1,
tags
file is being generated correct,messages
is clean. (generated byPlug 'ludovicchabant/vim-gutentags'
)2, I can use
ctrl+]
andctrl+T
to jump tag.(use tags generated byvim-gutentags
)3, call
:Tagbar
will get an window has"No tags found"
4, I delete
tags
file and tryctrl+]
will raisetag file not found
error, which is exptected.5, It's same wheather I add
let g:tagbar_ctags_bin='jsctags'
manually or not.6, The js code is
AMD
wayOS: Mac yosemite
.tern-project
file:{ "libs": [ "browser", "jquery" ], "plugins": { "requirejs": { "baseURL": "./", "paths": {} } } }
output of
npm info jsctags
:{ name: 'jsctags', description: 'jsctags generator', 'dist-tags': { latest: '5.1.0' }, versions: [ '0.1.0', '1.0.0', '2.0.0', ... users: { felixjung: true, yatsu: true }, homepage: 'https://github.com/ramitos/jsctags', keywords: [ 'ctags', 'jsctags', 'tern' ], ... dist: { shasum: '81479afa5893e9a4801d1f7123b5be94afc82696', tarball: 'https://registry.npmjs.org/jsctags/-/jsctags-5.1.0.tgz' } }
And here's my
:TagbarDebug
output:The output of jsctags -f - show.js is empty.
The text was updated successfully, but these errors were encountered: