This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-28
Channels
- # aleph (48)
- # announcements (3)
- # bangalore-clj (1)
- # beginners (131)
- # cider (30)
- # cljdoc (6)
- # cljs-dev (53)
- # cljsrn (24)
- # clojure (312)
- # clojure-austin (2)
- # clojure-europe (4)
- # clojure-finland (6)
- # clojure-nl (24)
- # clojure-spec (24)
- # clojure-uk (66)
- # clojurescript (185)
- # core-async (46)
- # cursive (10)
- # data-science (9)
- # datomic (15)
- # devcards (2)
- # emacs (50)
- # fulcro (28)
- # jobs (1)
- # jobs-discuss (2)
- # kaocha (11)
- # lein-figwheel (12)
- # nyc (1)
- # off-topic (105)
- # other-languages (80)
- # pedestal (6)
- # re-frame (50)
- # reagent (5)
- # reitit (1)
- # remote-jobs (2)
- # ring (10)
- # rum (1)
- # shadow-cljs (10)
- # spacemacs (19)
How can I use midje on Cider?
thanks!
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
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
dir locals allow you to override variables when in buffers in directories. (dir locals name tries to imply this)
but it looks like this
((nil
(cider-docker-translations . (("/root/" . "/Users/dan/") ("/src/" . "/Users/dan/projects/")))))
@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
it's classpath alias https://clojure.org/reference/deps_and_cli#_aliases
you can also (hack-local-variables)
to try to get emacs to recognize the new dir locals
*Messages*
will have a copy of the actual command CIDER used to start up the proejct
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
maybe try one thing? delete the cpcache or whatever clj makes. i've heard we might have some issues with that
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.
@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?