-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
gtags update fails #5911
Comments
I can confirm this. The same when I save cpp file, it prompts failed |
Same for Linux kernel project too on Ubuntu. |
Same here, also when manually using |
@3rd3 Just to be clear, did you create gtags in your project and then you get the error, or are you getting the error without using gtags? |
I am sorry, this is too long ago and I don't remember anymore. Perhaps other people do. |
Hmmm is this the bug I am seeing? I am testing the setup provided here: Any help is appreciated. |
If you have emacs installed from source, you might have overwritten Execute:
The way I work around this is by configuring emacs with the following command:
That way emacs installs it's ctags (which should probably be named Hope this helps. |
@SDWolf: Thanks for your input. This is probably not the right place for me to seek help, so I will limit myself to simply state that: |
If ctags displays Also, if that fails, you can install ctags from source with the following steps:
This is sure to overwrite your current ctags binary in |
I installed ctags from source and am also getting this error Failed: update tags(2) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I've just found another very contorted way to get: Failed: update TAGS(3) Upon this file being saved a save-hook is executed which ends up trying to update gtags for ~/.emacs.d/.cache/.custom-settings which is not going to work since GTAGS for that file has never been created. I've managed to confirm this bug by running gtags in the ~/.emacs.d/.cache folder which creates redundant gtags files but also makes the 'Failed: update TAGS(3)' message go away. This is what Emacs was trying to run in the save-hook
And the result was: Failed: update TAGS(3) <--- This error message is generated by emacs, you won't see it in the command line So what I did was:
And now the 'Failed: update TAGS(3)' message is gone when I run
manually and also when Emacs runs this from it's save-hook. Edit (2023.09.19.): I've just used the same method to fix the same error when working with python. helm-gtags-update-tags is the culprit. All you need to do is figure out where you need to create the tags. |
Description
When I save
.cpp
files I get a messageFailed: update TAGS
. I've searched the web, but couldn't find anything insightful.Reproduction steps unknown.
System Info
The text was updated successfully, but these errors were encountered: