Fork me on GitHub
#cider
<
2019-01-22
>
weavejester00:01:17

I can see that I can register a new REPL type with cider-register-cljs-repl-type, but I can't see anything that could be placed in a .dir-locals.el.

ag08:01:57

I’ve “hacked” it doing something like this:

((nil . ((eval . (with-eval-after-load 'cider
                   (cider-register-cljs-repl-type
                    'fw-cc
                    "(do (start) (start-fw) (use 'figwheel-sidecar.repl-api) (cljs-repl))")
                   (setq cider-default-cljs-repl 'fw-cc))))))
I’m sure there are now better ways, but that worked for me

weavejester11:01:51

Thanks for the hint

5
weavejester00:01:22

Has this functionality been removed from Cider, and if so, could we have it back? 😉

Saikyun12:01:29

hm, it seems like using cider-ns-refresh and cider-ns-reload messes up defonces?

Saikyun12:01:51

i.e. it defines them again

Saikyun12:01:02

or not...? hm, something strange is going on

Saikyun12:01:07

it seems to define them again sometimes :S

temco14:01:50

cider doc said, "Sometimes, cider-ns-refresh may not work for you. If you're looking for a bit more forceful reloading the cider-ns-reload and cider-ns-reload-all commands can be used instead. " I don't know what's that (some) time......

richiardiandrea16:01:43

Yeah I wrote that in the doc, basically I needed a way to introduce the fact that cider-ns-reload has a completely different mechanism for reloading namespace, which is (require :reload)...while refreshing is basically using tools.namespace. "Might not work for you" is as in "you don't like that workflow". Rephrasing might make sense if too confusing.

👍 10
mseddon22:01:42

That is not how I read that, but that makes total sense for me now. I have been in #nrepl for a few days, should I idle anywhere else to glean other insights like this? Happy to tentaviley PR doc changes myself if I can catch them.

richiardiandrea02:01:42

Well yeah writing here or in #nrepl for this kind of feedback is for sure a good thing

👍 5
temco03:01:34

I don't know why but I really found cider-ns-refresh couldn't reload my namespace, while cider-ns-reload could