Reputation: 870
In spacemacs, I am able to start a cider repl with cider-jack-in
: it says 'Connected.' followed by a quote, as expected. But then cider-switch-to-repl-buffer
does not open a repl buffer, and just produces the following message:
Invalid function: (repl (or the-repl a-repl))
Googling 'cider "invalid function repl"' produces only a cider issue relating to nim-mode (https://github.com/clojure-emacs/cider/issues/1712), which is not one of the configuration layers I have installed.
I am able to run the repl from the terminal using lein repl
without issue.
Upvotes: 0
Views: 559
Reputation: 870
I came across the following 'solution' while trying to debug this issue. I have no idea why it works and it's not very satisfying, but it does seem to resolve the problem.
SPC t D
SPC m s s
ENTER
over (repl (or the-repl a-repl))
to open cider-mode.el
. cider-mode.el
and save.After doing this, SPC m '
(cider-jack-in
) followed by SPC m s s
(cider-switch-to-repl-buffer
) opens the repl buffer as desired.
Upvotes: 0