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

:GutentagsGenerate not an editor command #51

Closed
IslandUsurper opened this issue Nov 5, 2015 · 3 comments
Closed

:GutentagsGenerate not an editor command #51

IslandUsurper opened this issue Nov 5, 2015 · 3 comments

Comments

@IslandUsurper
Copy link

I've been trying to figure out how to get my whole project tagged at once, and I found :GutentagsGenerate in the help file, so I tried it. However, Vim gave me "E492: Not an editor command: :GutentagsGenerate tags"

I think I should instead use ":GutentagsUpdate!", but it doesn't seem to get everything in my project.

@ludovicchabant
Copy link
Owner

Oh right, that's a documentation bug. The GutentagsGenerate command is gone since it was not super useful and too annoying to maintain.

Indeed, GutentagsUpdate! is what you would do to force a regeneration of your whole project from scratch. You typically don't need to do that -- frankly, the whole point of Gutentags is that everything is done for you in the background.

  • Why do you want to manually generate your project's tags? (Gutentags will do that right away when you open the first file in the project)
  • How do you figure that GutentagsUpdate! doesn't get everything in the project?

@IslandUsurper
Copy link
Author

:tag <some function in the same file> didn't work. ;)

That problem was in ctags, though, not Gutentags. It didn't recognize Drupal's files as being PHP because they end in .module and .inc. Adding those to the langmap in .profile took care of it.

@ludovicchabant
Copy link
Owner

Cool, good to know :) I'll close the issue then, thanks.

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