Fork me on GitHub
#cider
<
2019-05-04
>
iagwanderson14:05:47

hi ppl, I can't find a way to use cider-jack-in using with-profile dev

iagwanderson14:05:14

I found this function around the web

(defun start-cider-repl-with-profile ()
  (interactive)
  (letrec ((profile (read-string "Enter profile name: "))
           (lein-parms (concat "with-profile +" profile " repl :headless")))
    (message "lein-params set to: %s" lein-parms)
    (set-variable 'cider-lein-parameters lein-parms)
    (cider-jack-in)))

iagwanderson14:05:58

but I think it's outdated. I get an error message about Wrong number of arguments

bozhidar16:05:41

@iagwanderson Simply prefix the jack-in command with C-u.

bozhidar16:05:49

E.g. C-u M-x cider-jack-in.

dpsutton17:05:25

Also I believe the dev profile is present by default with lein?

pablore22:05:38

How do I tell cider to use JDK 8 instead of 9?

pablore22:05:21

I normally use jenv to manage my java versions, but emacs is not picking it up