alpha22jp / helm-cscope.el

Helm interface for xcscope.el
11 stars 8 forks source link

helm-cscope sometimes fails to run #8

Open maindoor opened 7 years ago

maindoor commented 7 years ago

Sometime helm-csope* functions fail to start with the error: Wrong type argument: stringp, nil

Here is the relevant text from Messages buffer on an emacs started using emacs-helm.sh Loading /home/skumar/.emacs.d/elpa/xcscope-20160628.2324/xcscope.elc...done Loading /home/skumar/.emacs.d/elpa/helm-cscope-20150609.649/helm-cscope.elc...done helm-cscope--find-common: Wrong type argument: stringp, nil

before starting the helm-cscope* functions, I setup cscope-set-initial-directory. after that I turned on toggle debug-on-error and this is what I get.

Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name-directory(nil) helm-cscope--find-common("-7" "beacon.c") helm-cscope-find-this-file("beacon.c") call-interactively(helm-cscope-find-this-file record nil) command-execute(helm-cscope-find-this-file record) helm-M-x(nil #("helm-cscope-find-this-file" 0 26 (match-part "helm-cscope-find-this-file"))) call-interactively(helm-M-x nil nil) command-execute(helm-M-x)

Any idea how I could get into this issue ?

maindoor commented 7 years ago

I found that this happens only when I am not in a c or c++ source buffer and try to start cscope.