Fork me on GitHub
#cider
<
2016-08-25
>
yenda12:08:11

Is it expected behavior that cider removes all instrumentation in test namespaces whenever you run a test ?

yenda12:08:41

simplest reproduction of what I mean is just C-u C-M-x in a fresh lein new app project test and run the test

yenda12:08:27

acording to this issue I thought it was solved https://github.com/clojure-emacs/cider/issues/1251

yenda13:08:17

I am running cider-test-run-focused-test btw, when I use (test-var) in the repl instrumentation works

jsa-aerial18:08:23

Does cider use clojure-complete or something else altogether??

gtrak21:08:41

it uses compliment and a separate backend for cljs

ag21:08:01

hey guys, I have a figwheel config similar to what’s described here: https://github.com/bhauman/lein-figwheel/wiki/SASS-watcher meaning that I have to jack-in and then run (start) - to build clojurescript, then if I’d like I can jump into clojurescript repl by running (repl). With CIDER though I have an option to jack-in straight to Clojurescript repl, in that case I would have 2 buffers (for CLJ and CLJS) repls). But then from clojurescript repl figweel doesn’t seem to be responding. So how can I run both repl with my setup?

richiardiandrea22:08:52

@ag maybe there is a problem with the function jack-in-clojurescript, it looks like the same commands are called: https://github.com/clojure-emacs/cider/blob/2bfa9da8b4cb3b8787abb6d10cf862410b54c17c/cider.el#L369

richiardiandrea22:08:16

unless they changed in the new figwheel versions

jasonjckn22:08:45

i haven't had any issues

jasonjckn22:08:04

cider-lein-parameters "do clean, repl :headless"
              cider-cljs-lein-repl "(use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl)")

ag22:08:32

@jasonjckn I don’t have cider-lein-parameters. I have cider-lein-jack-in-dependencies though

jasonjckn22:08:52

it's optional

jasonjckn22:08:58

cider-lein-jack-in-dependencies should be t

ag22:08:27

I don’t have cider-cljs-lein-repl either

jasonjckn22:08:34

that one is important

ag22:08:42

I’m not not using boot

ag22:08:47

it’s a lein project

jasonjckn22:08:59

try my value out that's all I can suggest

jasonjckn22:08:04

my environment works great

ag22:08:56

oh wait… these are vars, I thought they are functions

ag22:08:26

ok I set these vars and then jack-in to Clojurescript repl or Clj repl?

jasonjckn22:08:41

clojurescript jack in only

jasonjckn22:08:46

you get 2 repls

ag22:08:02

yeah. ok lemme try

jasonjckn22:08:51

you need to load your browser afterwards to point to figwheel server

jasonjckn22:08:07

only once your page loads with figwheel will CLJS repl work

jasonjckn22:08:41

:figwheel {:css-dirs    ["resources/public/css"]
             :server-port 3448
             :server-ip "0.0.0.0"
             :server-logfile "target/figwheel.log"
             :open-file-command "emacsclient"}

jasonjckn22:08:57

that's in my project.clj file

ag22:08:42

I think this works, only minor thing cider-repl-switch-to-other now doesn’t switch to CLJS repl

jasonjckn22:08:42

yah i had issues with that