Skip to content

Commit 71fd562

Browse files
llacombbatsov
authored andcommitted
Fix regression in cider-info-form arglists-str
Fix a regression in commit 1be3b8 where arglists-str is not a string anymore. This produces an error on emacs when trying to use `cider-doc`: ``` Debugger entered--Lisp error: (wrong-type-argument stringp ([f] [f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls])) string-match("\n" ([f] [f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls]) 0) split-string(([f] [f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls]) "\n") cider-docview-render-info(#<buffer *cider-doc*> (dict "ns" "clojure.core" "name" "map" "built-in" t "arglists" "([f] [f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 &..." "doc" "Returns a lazy sequence consisting of the result o..." "file" "" "arglists-str" ([f] [f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls]))) cider-docview-render(#<buffer *cider-doc*> "map" (dict "ns" "clojure.core" "name" "map" "built-in" t "arglists" "([f] [f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 &..." "doc" "Returns a lazy sequence consisting of the result o..." "file" "" "arglists-str" ([f] [f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls]))) cider-create-doc-buffer("map") cider-doc-lookup("map") cider-try-symbol-at-point("Doc for" cider-doc-lookup) cider-doc(nil) funcall-interactively(cider-doc nil) call-interactively(cider-doc nil nil) command-execute(cider-doc) ```
1 parent df2fd71 commit 71fd562

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
@@ -434,7 +434,7 @@ contain a `candidates' key, it is returned as is."
434434
(cond-> (:special-form info) (update :special-form str))
435435
(cond-> (:protocol info) (update :protocol str))
436436
(cond-> (:arglists info) (update :arglists str))
437-
(assoc :arglists-str (:arglists info))
437+
(assoc :arglists-str (str (:arglists info)))
438438
(clojure.walk/stringify-keys)))))
439439
")
440440

0 commit comments

Comments
 (0)