leoliu / ggtags

Emacs frontend to GNU Global source code tagging system.
http://elpa.gnu.org
578 stars 57 forks source link

wrong-type-argument error on compilation-auto-jump timer #209

Open yvdriess opened 4 years ago

yvdriess commented 4 years ago

GNU Emacs 28.0.50, x86_64 linux-gnu elpa ggtags-20190320.2208

I am getting the error consistently when doing a find-tag-dwim (M-.) on a remote file (tramp).

NB. Spamming M-. makes emacs hang, but occasionally when canceling with C-g it will do the compilation-goto-locus in the timer and do the jump to the right location.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  get-buffer(nil)
  display-buffer(nil (nil (allow-no-window . t)))
  compilation-goto-locus(#<marker in no buffer> #<marker at 2853 in wrt.h> nil)
  compilation-next-error-function(0 nil)
  next-error-internal()
  compile-goto-error()
  compilation-auto-jump(#<killed buffer> 288)
  apply(compilation-auto-jump (#<killed buffer> 288))
  timer-event-handler([t 24503 53617 284726 nil compilation-auto-jump (#<killed buffer> 288) nil 695000])

PS. The comments on the timer in ggtags.el is refering to https://github.com/leoliu/ggtags/issues/89 so they might be related.