Fork me on GitHub
#cider
<
2017-11-27
>
borkdude18:11:55

I have (setq cider-cljs-lein-repl "(do (ns boot.user) (start-repl))") in my init.el. But when I do cider-create-sibling-cljs-repl I get > Wrong type argument: stringp, nil

borkdude19:11:00

@qqq I have this in ~/.boot/profiles.boot:

(require ‘boot.repl)

(swap! boot.repl/*default-dependencies*
       concat ’[[cider/cider-nrepl “0.15.1-SNAPSHOT”]
                [refactor-nrepl “2.4.0-SNAPSHOT”]
                ])

(swap! boot.repl/*default-middleware*
       conj
       ’cider.nrepl/cider-middleware
       ’refactor-nrepl.middleware/wrap-refactor)

dominicm19:11:40

@borkdude fwiw, I'm pretty sure that should be in-ns, not ns

dominicm19:11:02

You're also missing a single quote

borkdude19:11:13

@dominicm where? And in-ns or ns doesn’t matter. This used to work.

borkdude19:11:33

@dominicm I tried it, still the same error. Not sure about your quote?

dominicm19:11:34

@borkdude If it used to work, ignore me. I'm just a bit confused because: - you've set it for lein, but you're using boot - you're doing ns boot.user but that would wipe the ns

borkdude19:11:59

@dominicm This is from my setup a year ago. Things might have changed since then. For boot projects you had to use this variable too, as there wasn’t a separate one for boot.

dominicm19:11:49

@borkdude do you (require 'cider) in your init.el before that setq?

dpsutton19:11:00

(defcustom cider-cljs-boot-repl "(do (require 'adzerk.boot-cljs-repl) (adzerk.boot-cljs-repl/start-repl))"
  "Clojure form that returns a ClojureScript REPL environment.
This is only used in boot projects.  It is evaluated in a Clojure REPL and
it should start a ClojureScript REPL."
  :type `(choice ,@(seq-map (lambda (x) `(const :tag ,(apply #'concat (cdr x)) ,(car x)))
                            cider--cljs-repl-types)
                 (string :tag "Custom"))
  :safe (lambda (x) (assoc x cider--cljs-repl-types))
  :package-version '(cider . "0.15.0")
  :group 'cider)

dominicm19:11:10

Also that ^^

borkdude19:11:26

Thanks, I’m going to try this soon

richiardiandrea21:11:31

Yeah that should work