ctags and tagbar with javascript
-
23-03-2021 - |
Question
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
Solution
Check your tags
and pwd
status:
:set tags?
:pwd
The tags files shown by the set tags?
command should be reachable from your pwd
.
OTHER TIPS
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow