cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Steiner 2020-08-07T01:26:45.015Z

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

practicalli-john 2020-08-07T10:11:41.015200Z

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

2020-08-07T10:16:36.015400Z

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

Steiner 2020-08-08T00:57:06.021200Z

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

practicalli-john 2020-08-08T01:01:34.021500Z

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

Steiner 2020-08-08T01:02:09.021700Z

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

practicalli-john 2020-08-08T01:16:03.021900Z

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.

Steiner 2020-08-08T01:26:41.022200Z

nope, I will do it later

benny 2020-08-07T17:39:40.016300Z

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

bozhidar 2020-08-08T08:36:07.022600Z

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

kwrooijen 2020-08-07T18:47:02.016600Z

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

kwrooijen 2020-08-07T18:47:25.016800Z

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

benny 2020-08-07T19:24:14.017Z

i don’t seem to have an auto-complete-mode β€” seems company mode is already on πŸ˜•

kwrooijen 2020-08-07T19:51:40.017200Z

Sorry, I remembered wrong. Try this instead

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

benny 2020-08-07T20:08:39.017500Z

that stopped the error, thanks @kevin.van.rooijen!

πŸŽ‰ 1
zilti 2020-08-07T21:13:20.019100Z

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

zilti 2020-08-07T21:13:56.019500Z

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

dpsutton 2020-08-07T21:25:15.020500Z

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