Fork me on GitHub
#cider
<
2020-08-07
>
Steiner01:08:45

when there is some variable conflict in cider-repl, how can I do to reset cider?

practicalli-johnny10:08:41

cider-restart or if you know the var name use cider-undef and type the name to remove from the repl.

Michaël Salihi10:08:36

You can also use sesman-restart (Spacemacs shortcuts`, m q r`) if you want restart session without restarting the repl.

Steiner00:08:06

@U05254DQM is that needed to start cider-mode? and I don't find cider-reset in cider-mode

practicalli-johnny01:08:34

Sorry, should have been cider-restart. My brain is full of flu...

Steiner01:08:09

I have tried cider-restart before, but it still store the former status

practicalli-johnny01:08:03

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.

Steiner01:08:41

nope, I will do it later

benny17:08:40

getting this with auto-complete (after pausing ~1s+). any ideas?

Kevin18:08:02

I remember (vaguely) having this issue. I switched to company-mode instead of auto-complete-mode

Kevin18:08:25

Seems to be the "better" auto completer for Emacs these days

benny19:08:14

i don’t seem to have an auto-complete-mode — seems company mode is already on 😕

Kevin19:08:40

Sorry, I remembered wrong. Try this instead

(setq cider-enhanced-cljs-completion-p nil)

benny20:08:39

that stopped the error, thanks @UG9U7TPDZ!

🎉 3
richiardiandrea02:08:40

I think suitable enhanced completions got broken after a shadow-cljs changes...I wanted to have a look there but did not have time

bozhidar08:08:07

Yeah, it has been broken for a while now. I disabled it completely in CIDER 0.26 while someone gets to fix it.

zilti21:08:20

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."

zilti21:08:56

;; ClojureScript REPL type: shadow-select
;; ClojureScript REPL init form: (do (require '[shadow.cljs.devtools.api :as shadow]) (shadow/nrepl-select :main))

dpsutton21:08:15

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