Skip to content

Commit

Permalink
Init the debugger at the end to avoid concurrent middleware loading
Browse files Browse the repository at this point in the history
  • Loading branch information
vspinu committed Sep 30, 2017
1 parent b215ae7 commit 4b4aa08
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cider.el
Original file line number Diff line number Diff line change
Expand Up @@ -892,10 +892,15 @@ buffer."
(cider--check-required-nrepl-version)
(cider--check-clojure-version-supported)
(cider--check-middleware-compatibility)
(cider--debug-init-connection)
(cider--subscribe-repl-to-server-out)
(when cider-auto-mode
(cider-enable-on-existing-clojure-buffers))
;; Middleware on cider-nrepl side is differed until first usage, but,
;; loading middleware concurrently can lead to occasional "require" issues
;; (likely a clojure bug). Thus, we load the heavy debug middleware towards
;; the end, allowing for the faster "server-out" middleware to load
;; first.
(cider--debug-init-connection)
(run-hooks 'cider-connected-hook)))

(defun cider--disconnected-handler ()
Expand Down

0 comments on commit 4b4aa08

Please sign in to comment.