when there is some variable conflict in cider-repl, how can I do to reset cider?
cider-restart
or if you know the var name use cider-undef
and type the name to remove from the repl.
You can also use sesman-restart
(Spacemacs shortcuts`, m q r`) if you want restart session without restarting the repl.
@jr0cket is that needed to start cider-mode
?
and I don't find cider-reset
in cider-mode
Sorry, should have been cider-restart
. My brain is full of flu...
I have tried cider-restart
before, but it still store the former status
Have you tried cider-ns-refresh
? I assume you fixed the conflict and saved the changes and if you stop/start the REPL the conflict goes away.
nope, I will do it later
getting this with auto-complete (after pausing ~1s+). any ideas?
Yeah, it has been broken for a while now. I disabled it completely in CIDER 0.26 while someone gets to fix it.
I remember (vaguely) having this issue. I switched to company-mode instead of auto-complete-mode
Seems to be the "better" auto completer for Emacs these days
i donβt seem to have an auto-complete-mode β seems company mode is already on π
Sorry, I remembered wrong. Try this instead
(setq cider-enhanced-cljs-completion-p nil)
that stopped the error, thanks @kevin.van.rooijen!
So when using cider-connect-clj&cljs
to connect to a running shadow-cljs instance, how do I get the cljs REPL to work? I get a REPL, no errors, the first line just before the prompt says [:selected :main]
but as soon as I send anything to the REPL all I get is "No available JS runtime."
;; ClojureScript REPL type: shadow-select
;; ClojureScript REPL init form: (do (require '[shadow.cljs.devtools.api :as shadow]) (shadow/nrepl-select :main))
this happens because cljs needs a runtime, usually either a browser or a node instance. is this a webapp? if so open your browser and it should all work out
@zilti see https://shadow-cljs.github.io/docs/UsersGuide.html#repl-troubleshooting