ctags and tagbar with javascript

2.5k Views Asked by At

I installed tagbar in vim.

It parses the whole js file perfectly. But, when i try to use ctags, it doesnt parse the file well.

Now, isnt tagbar using ctags?

https://picasaweb.google.com/lh/photo/dVQuETMxHXqTEgM7Zeim1dMTjNZETYmyPJy0liipFm0?feat=directlink
2

There are 2 best solutions below

7
On BEST ANSWER

Check your tags and pwd status:

:set tags?
:pwd

The tags files shown by the set tags? command should be reachable from your pwd.

0
On

TagBar generates its own tags on the fly and it doesn't even write it to disk somewhere: ctags' output is directly parsed and displayed in the window.

You may get this error because you didn't generate a tags file with :!ctags -R . or because it's out of date.