Skip to content

Commit b2ac1c7

Browse files
committed
Track some upstream changes in cider-nrepl
A few op params were renamed for consistency.
1 parent deb0539 commit b2ac1c7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cider-client.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,12 @@ resolve those to absolute paths."
536536
'abort-on-input))))
537537
(nrepl-dict-get dict "completions")))
538538

539-
(defun cider-sync-request:complete (str context)
540-
"Return a list of completions for STR using nREPL's \"complete\" op.
539+
(defun cider-sync-request:complete (prefix context)
540+
"Return a list of completions for PREFIX using nREPL's \"complete\" op.
541541
CONTEXT represents a completion context for compliment."
542542
(when-let* ((dict (thread-first `("op" "complete"
543543
"ns" ,(cider-current-ns)
544-
"symbol" ,str
544+
"prefix" ,prefix
545545
"context" ,context
546546
,@(when cider-enhanced-cljs-completion-p '("enhanced-cljs-completion?" "t")))
547547
(cider-nrepl-send-sync-request (cider-current-repl)
@@ -558,7 +558,7 @@ CONTEXT represents a completion context for compliment."
558558
"Send \"info\" op with parameters SYMBOL or CLASS and MEMBER."
559559
(let ((var-info (thread-first `("op" "info"
560560
"ns" ,(cider-current-ns)
561-
,@(when symbol `("symbol" ,symbol))
561+
,@(when symbol `("sym" ,symbol))
562562
,@(when class `("class" ,class))
563563
,@(when member `("member" ,member)))
564564
(cider-nrepl-send-sync-request (cider-current-repl)))))
@@ -570,7 +570,7 @@ CONTEXT represents a completion context for compliment."
570570
"Send \"eldoc\" op with parameters SYMBOL or CLASS and MEMBER."
571571
(when-let* ((eldoc (thread-first `("op" "eldoc"
572572
"ns" ,(cider-current-ns)
573-
,@(when symbol `("symbol" ,symbol))
573+
,@(when symbol `("sym" ,symbol))
574574
,@(when class `("class" ,class))
575575
,@(when member `("member" ,member)))
576576
(cider-nrepl-send-sync-request (cider-current-repl)
@@ -583,7 +583,7 @@ CONTEXT represents a completion context for compliment."
583583
"Send \"eldoc-datomic-query\" op with parameter SYMBOL."
584584
(when-let* ((eldoc (thread-first `("op" "eldoc-datomic-query"
585585
"ns" ,(cider-current-ns)
586-
,@(when symbol `("symbol" ,symbol)))
586+
,@(when symbol `("sym" ,symbol)))
587587
(cider-nrepl-send-sync-request nil 'abort-on-input))))
588588
(if (member "no-eldoc" (nrepl-dict-get eldoc "status"))
589589
nil

cider-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ the related commands `cider-repl-clear-buffer' and
167167
(cider-nrepl-send-request
168168
`("op" "undef"
169169
"ns" ,(cider-current-ns)
170-
"symbol" ,sym)
170+
"sym" ,sym)
171171
(cider-interactive-eval-handler (current-buffer))))))
172172

173173
;;; cider-run

cider.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ Elements of the list are artifact name and list of exclusions to apply for the a
404404
(defconst cider-latest-clojure-version "1.10.1"
405405
"Latest supported version of Clojure.")
406406

407-
(defconst cider-required-middleware-version "0.25.0-SNAPSHOT"
407+
(defconst cider-required-middleware-version "0.25.0-alpha1"
408408
"The CIDER nREPL version that's known to work properly with CIDER.")
409409

410410
(defcustom cider-jack-in-auto-inject-clojure nil

0 commit comments

Comments
 (0)