-
Notifications
You must be signed in to change notification settings - Fork 56
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
ggtags not prompting for project root #109
Comments
I added it to my (push "non-zero exit: global: GTAGS not found" debug-ignored-errors) |
Looks like you may have ggtags-mode enabled incorrectly. First, pick the major modes that you would like to use ggtags-mode and enable it accordingly. For example, put |
Hmm, this is what I have currently. Do you see anything wrong? (use-package ggtags
:ensure t
:init
(setenv "GTAGSCONF" "/home/blaenk/.globalrc")
(setenv "GTAGSLABEL" "ctags")
(push "GTAGS not found" debug-ignored-errors)
:config
(add-hook 'prog-mode-hook 'ggtags-mode)) The only other thing relating to ggtags I have is to make its keymap override evil's: (with-eval-after-load 'ggtags
(evil-make-overriding-map ggtags-mode-map)
;; force update evil keymaps after ggtags-mode loaded
(add-hook 'ggtags-mode-hook #'evil-normalize-keymaps)) Is there some caching ggtags does somewhere? Could it be that my 'project root' changed somehow, so it's still trying to find the stuff in the old root? |
I'm no longer getting this error, no idea why. Will close. |
No yeah, this is happening, and I don't know why, especially because I can create the tags manually if I want with |
I think it's something to do with the environment variables, which I have to set to enable Rust support for global via ctags. I'll close this for now to avoid cluttering things up. I'll keep this updated if I find something else. |
I also met this error after I enabled |
Do you mean |
Yes, I mean |
check the buffer ggtags-global for anything suspicious. turn on debug-on-error for debugging purposes. some functions may have different semantics in ggtags or elsewhere. |
Thanks @leoliu , there is no buffer named Here is all my settings for
And when I open an
I am not sure when this function |
By the way, after I generated the So, looks like this error only happens when my project has no |
hi @seudut, When The error you are seeing is due to My normal routine to use ggtags on a new project is like this:
At this point if there is no GTAGS file in the project HTH, |
Thanks very much @leoliu |
Thanks. BTW, there is command |
I read that ggtags either looks for the GTAGS file or prompts for the project root, but when I start emacs for a file (say init.el) it just dumps me in Backtrace with the following error:
I do have debug-on-error enabled, could it be that?
The text was updated successfully, but these errors were encountered: