This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-08
Channels
- # adventofcode (55)
- # announcements (21)
- # babashka (20)
- # beginners (89)
- # calva (21)
- # cider (16)
- # circleci (11)
- # clara (8)
- # clj-kondo (6)
- # clojure (31)
- # clojure-australia (3)
- # clojure-europe (17)
- # clojure-nl (5)
- # clojure-uk (10)
- # clojurescript (25)
- # community-development (4)
- # conjure (12)
- # cryogen (28)
- # cursive (21)
- # datomic (7)
- # deps-new (1)
- # depstar (45)
- # emacs (5)
- # fulcro (46)
- # instaparse (5)
- # jobs (5)
- # jobs-discuss (23)
- # kaocha (12)
- # lambdaisland (2)
- # leiningen (1)
- # meander (10)
- # mid-cities-meetup (1)
- # reagent (5)
- # reitit (5)
- # remote-jobs (45)
- # reveal (9)
- # sql (6)
- # tools-deps (103)
- # uncomplicate (1)
- # xtdb (1)
When running cider-test-run-ns-tests
I get the message No assertions (or no tests) were run.Did you forget to use 'is' in your tests?
unless I load the file with my tests in it. Is this expected behavior? Is there anyway to have cider-test-run-ns-tests
load those tests automatically?
So this is probably already answered, but is there a way to have Cider pick up new dependencies in an ns-require statement and in a leinigen project.clj? Or do I have to restart the Cider process and re-jack-in ?
As far as I know, you need to restart the Cider process and re-jack-in (unless you are using pomegranate
). There is some work in progress in CIDER to let this work, but as far as I know, there are still some missing pieces.
Alright, thanks.
goodmorning/day/evening
With the latest changes in c.t.d there are some changes on how the -m
is handled and current cider jack-in fails in certain situations
for instance i have this test
alias
:test {:extra-paths ["test"]
:extra-deps {lambdaisland/kaocha {:mvn/version "1.0.690"}
lambdaisland/kaocha-cloverage {:mvn/version "1.0.63"}
lambdaisland/kaocha-junit-xml {:mvn/version "0.0.76"}
ring/ring-mock {:mvn/version "0.3.2"}
mockery {:mvn/version "0.1.4"}
http-kit.fake/http-kit.fake {:mvn/version "0.2.1"}}
:main-opts ["-m" "kaocha.runner"]}
doing cider-jack-in
fails because of multiple -m
one from test/main-opts
and another from the cider
The recommendation from #tools-deps was to define alias for cider and specify -main-opts
in the alias:
clojure -Sdeps '{:deps ... :aliases {:cider/jack-in {:main-opts ["-m" ...]}}}' -M:dev:test:cider/jack-in --middleware ...
what do you think about this?https://github.com/clojure-emacs/cider/issues/2941 created for you @kirill.salykin. add any context you feel i missed
wow, thanks!
if you could put a minimal repro that would be helpful. obviously those deps but perhaps a single ns with a test? be nice to confirm that your exact situation would work
I’ll try to do it tomorrow link to github repo is enough? @dpsutton
I am about to go to bed, please let me know how i can help tomorrow
did the auto-test-mode stopped working some time ago
or is it just me?
Sorry, I obviously didnt understand the issue... seems some of the context is not covered here. I'll look over the issue in more detail.