Fork me on GitHub
#cider
<
2018-12-03
>
phil14:12:42

Hey all, how can I set :extra-paths when I do cider-jack-in?

bozhidar14:12:48

@phil You have to set them in whatever build tool you’re using, CIDER will simply shell out to it.

phil14:12:48

Ah, so, :extra-paths in the top-level of my deps.edn?

bozhidar14:12:08

@phil Yeah, that will certainly do.

dpsutton14:12:39

if anyone wants to easily cider-connect but add their own profiles, etc this function could help them easily modify the startup command that cider issues:

(defun cider-copy-jack-in-command ()
      (interactive)
      (kill-new (plist-get (cider--update-jack-in-cmd (cider--update-project-dir '()))
                           :jack-in-cmd)))

dpsutton14:12:39

and it will copy /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.5.0"} cider/cider-nrepl {:mvn/version "0.19.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]' so you can add whatever profiles you would like and it will include the middleware for you

dpsutton14:12:06

you can also use dir-locals

((nil
  (cider-clojure-cli-global-options . "-A:fig")))

dpsutton14:12:24

i have this in a project so figwheel main is included and its main options are set

phil14:12:58

Ah! That's the winner.

pesterhazy16:12:53

I'm seeing this issue occasionally

error in process filter: user-error: ‘nil’ requires the nREPL op "classpath" (provided by cider-nrepl)
error in process filter: ‘nil’ requires the nREPL op "classpath" (provided by cider-nrepl)

pesterhazy16:12:13

after cider-connect

pesterhazy16:12:19

usually this goes away after restarting Emacs

pesterhazy16:12:10

now I went away after I added cider-nrepl to ~/.lein/profiles.clj

pesterhazy16:12:29

though I swear that cider sometimes works without cider-nrepl present?!

dpsutton16:12:16

It shouldn't ever work without the middleware I don't think?

macrobartfast19:12:38

cider-doc is producing Wrong type argument: stringp, nil ... ideas on why or how to debug?

Chris22:12:38

If you can’t find a solution, try switching to the MELPA Stable version.