Closed bmag closed 8 years ago
Try a M-: (require 'gtags)
.
I have a use-package
statement in my configuration:
(use-package gtags
:ensure t
:defer t)
@kostajh your suggestion didn't work, but it did help. Turns out gtags
package is only available from Marmalade, but I didn't have Marmalade in package-archives
. However, I checked and installing drupal-mode
and helm-gtags
doesn't automatically install gtags
.
To summarize: drupal-mode assumes that if drupal-mode
and helm-gtags
are installed, then gtags
is also installed and tries to require it. However, the assumption is wrong and causes the error above.
Yeah. The assumption about gtags being available is wrong.
I tried to solve this - see the feature/helm-gtags branch. I haven't put much effort into it so it might be a bit naïve and/or rough around the edges.
If someone could have a look and provide feedback I'll be grateful.
The only change is the addtion of a dedicated drupal/helm-gtags.el
instead of relying on drupal/gtags.el
.
I also meet this problem on Windows. Because the emacs on Windows lose gtags.el
, so you can just copy the gtags.el
to a load-path
. This gtags.el
is from GNU Global
source.
gtags.zip
I just made a few adaptions to the feature/helm-gtags branch and merged it to develop.
@bmag, let me know if this works or breaks something for you.
@jmjoy, I'm not sure this is related to what you experience. Your problem seems related to the standard gtags -- and that should not break anything if it is not installed. Feel free to open a new issue with more details and we'll see if we can figure out what's happening for you.
Reproduction recipe: With Emacs 24.5, the following
~/.emacs.d/init.el
file and no other files in~/.emacs.d
directory:M-x package-install RET helm-gtags RET
M-x package-install RET drupal-mode RET
M-: (require 'helm-gtags)
M-: (require 'drupal-mode)
Result: An error with this backtrace:
I also get the error "Cannot open load file: no such file or directory, gtags" (without the backtrace) when opening a directory with Dired (e.g. via
C-x d
).