-
Notifications
You must be signed in to change notification settings - Fork 15
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
xref-find-definitions error #13
Comments
I'm running into the same problem. Haven't had the time to trace the source yet, any luck? On Emacs 25.3.1, maybe an incompatibility with the dev version? SOLVED: Don't be an idiot like me and not read the dependencies. Just install |
@ajpauwels thank you for your time, but I have the silver searcher installed along with the other dependencies, and it's not the case |
What does |
I had the same problem and solved it by installing ag ... |
Same issue however I do have ag installed.
|
Same issue here. This is my config:
which come from @NicolasPetton blog post and I've got ag installed
Also I'm on Emacs 26.1 |
Is it the same stacktrace as the original report? The original report showed that "ag" wasn't found. |
No, actually I don't get an error, the issue is with the same function but it just returns saying that no references where found. |
Flávio Sousa <notifications@github.com> writes:
No, actually I don't get an error, the issue is with the same function
but it just returns saying that no references where found.
Ok, then it's probably something quite different.
Could you send me simple steps to reproduce the issue?
|
@NicolasPetton actually found my issue. I was working under |
Flávio Sousa <notifications@github.com> writes:
@NicolasPetton actually found my issue. I was working under `lib`,
which was was being ignored by
xref-js2. https://github.com/NicolasPetton/xref-js2/blob/master/xref-js2.el#L56
Ok. Maybe this should be documented on the readme :)
|
I'm using Emacs 25.1.1 and js2-mode along with xref-js2. I've set up like described in readme:
This is the error after using M-.
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
call-process(nil nil t nil "--js" "--noheading" "--nocolor" "--ignore-dir" "bower_components" "--ignore-dir" "node_modules" "--ignore-dir" "build" "--ignore-dir" "lib" "--ignore" ".min.js" "\bsetupCustomBindings\b[\s][:=][^=]|function[\s]+\bsetupCustomBindings$
apply(call-process nil nil t nil ("--js" "--noheading" "--nocolor" "--ignore-dir" "bower_components" "--ignore-dir" "node_modules" "--ignore-dir" "build" "--ignore-dir" "lib" "--ignore" ".min.js" "\bsetupCustomBindings\b[\s][:=][^=]|function[\s]+\bsetupCustomBi$
process-file(nil nil t nil "--js" "--noheading" "--nocolor" "--ignore-dir" "bower_components" "--ignore-dir" "node_modules" "--ignore-dir" "build" "--ignore-dir" "lib" "--ignore" ".min.js" "\bsetupCustomBindings\b[\s][:=][^=]|function[\s]+\bsetupCustomBindings$
apply(process-file nil nil t nil ("--js" "--noheading" "--nocolor" "--ignore-dir" "bower_components" "--ignore-dir" "node_modules" "--ignore-dir" "build" "--ignore-dir" "lib" "--ignore" ".min.js" "\bsetupCustomBindings\b[\s][:=][^=]|function[\s]+\bsetupCustomBi$
xref-js2--find-candidates("setupCustomBindings" "\bsetupCustomBindings\b[\s][:=][^=]|function[\s]+\bsetupCustomBindings\b|class[\s]+\bsetupCustomBindings\b|(?<!new)[^.]setupCustomBindings[\s]\(")
xref-js2--find-definitions("setupCustomBindings")
xref-js2--xref-find-definitions("setupCustomBindings")
#514 "\300^A!\207" [xref-js2--xref-find-definitions] 4 "\n\n(fn BACKEND SYMBOL)"
apply(#[514 "\300^A!\207" [xref-js2--xref-find-definitions] 4 "\n\n(fn BACKEND SYMBOL)"] xref-js2 "setupCustomBindings")
xref-backend-definitions(xref-js2 "setupCustomBindings")
xref--find-xrefs("setupCustomBindings" definitions "setupCustomBindings" nil)
xref--find-definitions("setupCustomBindings" nil)
xref-find-definitions("setupCustomBindings")
funcall-interactively(xref-find-definitions "setupCustomBindings")
call-interactively(xref-find-definitions nil nil)
command-execute(xref-find-definitions)
The text was updated successfully, but these errors were encountered: