FelipeLema / emacs-counsel-gtags

GNU Global with ivy completion
22 stars 5 forks source link

ivy-call: Symbol’s value as variable is void: line #2

Closed Ergus closed 5 years ago

Ergus commented 5 years ago

Hi: Apart from comment in the previous issue I just found that locally when I try to open a candidate file from the ivy list I get this error message:

 ivy-call: Symbol’s value as variable is void: line

This is local, so nothing to do with tramp.

FelipeLema commented 5 years ago

can you toggle-debug-on-error and paste the stack trace here? that would help a lot

Ergus commented 5 years ago

Yes, sorry, I forgot to add it:

Debugger entered--Lisp error: (void-variable line)
  counsel-gtags--find-file("./basic/BoxIterator.hpp:61:    return BoxIterator(...")
  ivy-call()
  ivy-read("Pattern: " ("./basic/BoxIterator.hpp:59:  static BoxIterator be..." "./basic/BoxIterator.hpp:61:    return BoxIterator(..." "./basic/BoxIterator.hpp:64:  static BoxIterator en..." "./basic/BoxIterator.hpp:66:    return BoxIterator(..." "./basic/BoxIterator.hpp:121:  BoxIterator(const Bo..." "./basic/BoxIterator.hpp:122:   : x(box[0][0])," "./basic/BoxIterator.hpp:123:     y(box[1][0])," "./basic/BoxIterator.hpp:124:     z(box[2][0])," ) :action counsel-gtags--find-file :caller counsel-gtags--select-file)
  counsel-gtags--select-file(from-here "box" ("--from-here=78:basic/main.cpp") t)
  counsel-gtags--from-here("box")
  counsel-gtags-dwim()
  funcall-interactively(counsel-gtags-dwim)
  call-interactively(counsel-gtags-dwim nil nil)
  command-execute(counsel-gtags-dwim)

giving a second look I see that there is not 'definition pair in counsel-gtags--complete-options (-d)