This argument ends up being passed to the function references by the variable xref-show-xrefs-function. By default this is set to xref--show-xref-buffer, however the documentation of this variable does suggest that t isn't a supported value:
DISPLAY-ACTION indicates where the target location should be
displayed. The possible values are nil, ‘window’ meaning the
other window, or ‘frame’ meaning the other frame.
A value of t does however "work" with the default emacs function/implementation (i.e. xref--show-xref-buffer), despite what the docs suggest.
When consult is used, it provides an alternative implementation of xref (seen here) which does not support the undocumented t as a value, and therefore throws an error.
Steps to reproduce
Install consult and click on an lsp lens. Emacs will throw an error "No clause matching t". Adding that clause into consult-xref fixes the issue.
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
When consult is installed, calls to
lsp-clojure--show-references
throw an error.I believe the second argument to the call to
lsp-show-xrefs
inlsp-clojure--show-references
should benil
rather thant
.This argument ends up being passed to the function references by the variable
xref-show-xrefs-function
. By default this is set toxref--show-xref-buffer
, however the documentation of this variable does suggest thatt
isn't a supported value:DISPLAY-ACTION indicates where the target location should be displayed. The possible values are nil, ‘window’ meaning the other window, or ‘frame’ meaning the other frame.
A value of
t
does however "work" with the default emacs function/implementation (i.e. xref--show-xref-buffer), despite what the docs suggest.When consult is used, it provides an alternative implementation of xref (seen here) which does not support the undocumented
t
as a value, and therefore throws an error.Steps to reproduce
Install consult and click on an lsp lens. Emacs will throw an error "No clause matching
t
". Adding that clause intoconsult-xref
fixes the issue.Expected behavior
View the consult xref display in the minibuffer.
Which Language Server did you use?
Clojure
OS
Linux
Error callstack
Anything else?
No response