Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

tagbar opens for JS files, but can't jump to fn with ctrl-] ? #45

Closed
AndrewRayCode opened this issue Oct 18, 2011 · 1 comment
Closed

Comments

@AndrewRayCode
Copy link

If I open tagbar I get all the sidebar with all of my functions all happy and nice, and I can see my function on the left:

functionName : void function(any, Object)

But when I put my cursor over a use of the function (in the main file, not in tagbar), and hit CTRL-], I get:

E433: No tags file
E426: tag not found: functionName

I have jsctags installed:

delv@~ $ jsctags
    usage: jsctags [options] path0 [.. pathN]

I'm not too familiar with how ctags work in general, is this a TagBar issue? Or is the ctags file not getting generated...?

@majutsushi
Copy link
Collaborator

Tagbar doesn't use a tags file for various reasons, it generates the tags it needs for the current file on the fly. To be able to jump to functions with the normal Vim methods you have to generate a tags file manually (with jsctags in your case). It should be enough to call jsctags . from the top of your project directory.

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

No branches or pull requests

2 participants