cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Kevin F 2020-12-08T00:34:25.250400Z

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?

Daniel Östling 2020-12-08T07:35:32.252100Z

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 ?

iarenaza 2020-12-08T09:54:39.253500Z

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.

Daniel Östling 2020-12-08T10:54:13.253900Z

Alright, thanks.

kirill.salykin 2020-12-08T18:49:32.257200Z

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?

dpsutton 2020-12-08T18:52:31.258Z

https://github.com/clojure-emacs/cider/issues/2941 created for you @kirill.salykin. add any context you feel i missed

👍 1
kirill.salykin 2020-12-08T18:53:19.258400Z

wow, thanks!

dpsutton 2020-12-08T18:55:36.259300Z

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

kirill.salykin 2020-12-08T18:56:15.260Z

I’ll try to do it tomorrow link to github repo is enough? @dpsutton

dpsutton 2020-12-08T18:57:59.260800Z

actually i think i can do it

kirill.salykin 2020-12-08T18:58:34.261200Z

I am about to go to bed, please let me know how i can help tomorrow

2020-12-08T20:12:31.261500Z

did the auto-test-mode stopped working some time ago

2020-12-08T20:12:34.261800Z

or is it just me?

practicalli-john 2020-12-08T23:04:37.277100Z

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.

dpsutton 2020-12-08T23:05:43.278200Z

the point of this is to dictate which main function is run. if an alias contains a main function it will be run rather than the cider.nrepl one. the point of this issue is to ensure that the cider.nrepl main always wins the way multiple mains are managed

👍 1
dpsutton 2020-12-08T23:06:24.278600Z

its not an external test runner when its just on the classpath.