Skip to content

Commit 2e2151a

Browse files
plexusbbatsov
authored andcommitted
Fix info/lookup fallback: response has an extra level
When doing a var-info lookup we potentially try three different strategies: info, lookup, and eval. The second currently always fails, because the "info" dict is not at the top level in the response message, but nested under an "info" key.
1 parent 932f6a0 commit 2e2151a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cider-client.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ CONTEXT represents a completion context for compliment."
637637
(cider-nrepl-send-sync-request (cider-current-repl)))))
638638
(if (member "lookup-error" (nrepl-dict-get var-info "status"))
639639
nil
640-
var-info)))
640+
(nrepl-dict-get var-info "info"))))
641641

642642
(defun cider-sync-request:eldoc (symbol &optional class member)
643643
"Send \"eldoc\" op with parameters SYMBOL or CLASS and MEMBER."

0 commit comments

Comments
 (0)