Fork me on GitHub
#cider
<
2019-03-28
>
d.ian.b14:03:19

How can I use midje on Cider?

skrat16:03:00

how do I jack-in into deps.edn project such that my test/ source path is loaded? I don't have it in source-paths, however I have it in extra-paths under test alias, as recommended by the official guide

skrat16:03:34

the docs don't say a word on this

dpsutton16:03:38

use a prefix argument and you can add in the alias by editing the command. there's also something you can set in your dir locals if its the same every time

dpsutton16:03:36

cider-clojure-cli-global-options i think

skrat16:03:08

@dpsutton thanks, right, the dir locals sounds interesting, what is it?

dpsutton16:03:24

dir locals allow you to override variables when in buffers in directories. (dir locals name tries to imply this)

dpsutton16:03:39

the syntax is a little confusing but check the emacs manual or google it

dpsutton16:03:04

but it looks like this

((nil
  (cider-docker-translations . (("/root/" . "/Users/dan/") ("/src/" . "/Users/dan/projects/")))))

skrat16:03:17

@dpsutton cool, anyways, even if I did that, added the test alias with :extra-paths ["test"], set cider-clojure-cli-global-options to -C:test (it indeed changed the command), my test namespace is still not loaded when I hit cider-test-run-ns-tests

dpsutton16:03:37

what is -C ?

dpsutton16:03:36

check in the *Messages* buffer to ensure that your updates were reflected

dpsutton16:03:51

you can also (hack-local-variables) to try to get emacs to recognize the new dir locals

dpsutton16:03:08

*Messages* will have a copy of the actual command CIDER used to start up the proejct

skrat16:03:35

yeah they were, the jack-in correctly added that -C:test, so that's all right, it's just that it doesn't load the test namespace initially

skrat16:03:40

and most likely doesn't reload

skrat16:03:13

I'm not sure what I'm doing

skrat16:03:31

what's the workflow supposed to be? 🙂

dpsutton16:03:35

welcome to the club 🙂

dpsutton16:03:47

what are you trying to accomplish? running your tests with CIDER?

dpsutton16:03:15

maybe try one thing? delete the cpcache or whatever clj makes. i've heard we might have some issues with that

bozhidar18:03:58

I can only say that if the jack-in command looks right to you than the classpath should be properly set, as this comes straight from clj/lein/boot/whatever someone is using.

bozhidar18:03:43

Do you see the relevant directories in the classpath browser?

stathissideris19:03:55

@bozhidar hello! many thanks for cider! is there any way to do something like cider-pprint-eval-last-sexp-to-repl but printing the result in the REPL instead of adding it as input in the REPL?

bfay19:03:19

Updated my cider package and just tried the remote nrepl thing I was having trouble with yesterday (with the classpath op thing). It's seems to be working perfectly now, thanks for the change! 🔥🔥💯🔥🔥