Fork me on GitHub
#cider
<
2017-02-18
>
arrdem01:02:51

@hans: So before the timeout occurs C-g and check *nrepl-server <whatever>*, paste that here

arrdem01:02:26

I was seeing a (potentially similar) failure to connect last night

hans05:02:51

@arrdem the nrepl-server buffer contains nothing but nREPL server started on port 45287 on host 127.0.0.1 -

qqq11:02:49

is cider and dirac incompatible? cider wants its middleware; dirac seemsto want NO OTHER middleware

andrea.crotti21:02:47

is restarting cider when used with figwheel and clojurescript supposed to work out of the box with cider-restart ?

andrea.crotti21:02:25

I mean I do a cider-jack-in-clojurescript, then I update the dependencies and want to get it updated, so I do cider-restart but it restarts only the JVM repl

andrea.crotti21:02:31

not the clojurescript one

andrea.crotti21:02:53

or there is another magic solution?

andrea.crotti21:02:19

also there is no integration for running clojurescript tests with lein doo phantomjs right?

andrea.crotti21:02:43

I can probably do something easily anyway to just have the running process in Emacs, but I was wondering if there was already

richiardiandrea21:02:47

@andrea.crotti no, the restart only takes care of namespace/vars reloading. If you want to add deps dynamically you need to use something specific for classloader hotload. Also another thing you can check if you use boot is https://github.com/danielsz/system

richiardiandrea21:02:23

It tries to reload namespaces when necessary as well as restart the repl when you need to.

richiardiandrea21:02:18

Also, hotload dependencies in boot is only a call to boot.aether/add-dependency if I recall correctly

dpsutton22:02:51

restart should restart all repls. unfortunately, cljs repls are started by a callback and this callback isn't maintained. so restart doesn't know to call that clojurescript invocation

andrea.crotti22:02:23

Ah ok makes sense

andrea.crotti22:02:16

But it could just kill all the Clojurescript repls easily I think

andrea.crotti22:02:40

Even just by killing buffers that match a regexp

andrea.crotti22:02:11

I can't really use a Clojurescript repl after I change dependencies and restarted anyway right?

andrea.crotti22:02:00

Just a bit of elisp that kills everything and does the jack in again might do the trick already

andrea.crotti22:02:07

But if a new dependency added is only used by Clojure and not Clojurescript then I don't have to restart the Clojurescript repl right?

dpsutton22:02:54

yeah. to get deps in you need to crank it up again anew

dpsutton22:02:01

although possibly clojure refactor can handle this

dpsutton22:02:29

i think your last statement is correct

dpsutton22:02:34

if its not a new dep for cljs

dpsutton22:02:58

an easy way to kill things is C-c C-q

dpsutton22:02:17

which is cider-quit and then cider-jack-in again