Skip to content

Commit e38abb4

Browse files
authored
[Fix #2964] Have cider-complete fail gracefully without a connection (#2977)
1 parent b82fd1c commit e38abb4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
* [#2941](https://github.com/clojure-emacs/cider/issues/2941): Use main args in alias for clojure cli
1212
* [#2953](https://github.com/clojure-emacs/cider/issues/2953): Don't font-lock function/macro vars as vars.
13+
* [#2964](https://github.com/clojure-emacs/cider/issues/2964): Fixes issue with `cider-company-enable-fuzzy-completion` and Helm
1314

1415
### Changes
1516

cider-completion.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ we check if cider-nrepl's complete op is available
162162
and afterward we fallback on nREPL's built-in
163163
completion functionality."
164164
(cond
165-
;; First we try if cider-nrepl's completion is available
165+
;; if we don't have a connection, end early
166+
((not (cider-connected-p)) nil)
167+
;; next we try if cider-nrepl's completion is available
166168
((cider-nrepl-op-supported-p "complete")
167169
(let* ((context (cider-completion-get-context))
168170
(candidates (cider-sync-request:complete prefix context)))

0 commit comments

Comments
 (0)