Fork me on GitHub
#emacs
<
2018-01-08
>
tianshu03:01:57

cider-jack-in-clojurescript will first do cider-jack-in, then create a new repl buffer for clojurescript.

tianshu03:01:31

so you will have two repl in the end, one for clojure and one for clojurescript.

dpsutton03:01:55

i think he needs to jack in twice is the problem, both times with clojurescript

dpsutton03:01:57

@nenadalm try something like

(defun my-jack-in-server ()
  (interactive)
  (let ((cider-lein-global-options "with-profile server-profile"))
    (cider-jack-in-clojurescript)))

nenadalm06:01:13

@dpsutton thanks. It doesn't work but it seems to be step in right direction. I've tried running the function after cider-jack-in-clojurescript but got some error:

1. Unhandled java.io.FileNotFoundException
   Could not locate figwheel_sidecar/repl_api__init.class or
   figwheel_sidecar/repl_api.clj on classpath. Please check that
   namespaces with dashes use underscores in the Clojure file name.
I will try to look at it more in the evening.