Fork me on GitHub
#cider
<
2017-02-01
>
zak11:02:10

I've got an issue in a cider cljs repl where figwheel tries to reload a changed file from the wrong path (omitting js/compiled/out)

zak11:02:20

Doesn't seem to be an issue running lein figwheel <build>, just from emacs M-x cider-jack-in-clojurescript

benedek17:02:46

oi @plexus re. https://github.com/clojure-emacs/refactor-nrepl/issues/190 i don’t fully agree with Lars on this. i have not commented on the issue as i don’t really have time atm to look at this. but if you think there is a chance for a PR here I am happy to and support that PR.

ag19:02:09

@richiardiandrea that way you showed me to get correct cljs-repl buffer. I just noticed. For some reason it creates two cljs buffers. and another clojure repl buffer.

richiardiandrea19:02:55

it creates one here...did you remove the entry repl -s wait

ag19:02:16

@jr0cket chestnut is Lein based, I’m using boot

ag19:02:02

@richiardiandrea from dir-locals? I did

richiardiandrea19:02:15

no prom the task itself

ag19:02:01

yeah, I guess something not quite right with the task itself. can you please share the task again?

ag19:02:19

this is my “main” task:

(deftask dev []
  (comp
    (dev-env)
    (serve :reload true)
    (watch)
    (reload)
    (notify :audible true :theme "woodblock"
            :visual true :title "finops-admin")
    (npm-install)
    (sassc)
    (cljs-repl)
    (cljs)
    (target)))
but to run it I have another task, called start, which is noted in dir-locals, right? I made it exactly how you showed me:
(deftask start []
  (future (boot (dev)))
  (comp (repl :server true) (wait)))

richiardiandrea19:02:42

yeah you can remove (comp (repl :server true) (wait))

richiardiandrea19:02:57

but in any case it should not matter, as it is a terminal repl

ag19:02:15

in that case it doesn’t run it at all:

error in process sentinel: Could not start nREPL server:

ag19:02:13

@richiardiandrea oh, seems if I do it this way:

(deftask start []
  (comp
    (repl :server true)
    (boot (dev))
    (wait)))
it works

ag19:02:43

no future needed and both repls seems to be operational

richiardiandrea19:02:56

ok so they are not blocking good

ag19:02:26

in this case I may not need to wrap dev into boot either

ag19:02:29

let me try

ag19:02:43

wow, when I don’t, it creates 4 repls - couple for each. clj and cljs

ag19:02:46

¯\(ツ)