This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-11
Channels
- # announcements (1)
- # aws (2)
- # beginners (43)
- # calva (7)
- # cider (5)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (68)
- # clojure-android (10)
- # clojure-conj (2)
- # clojure-italy (10)
- # clojure-nl (3)
- # clojure-spec (3)
- # clojure-uk (128)
- # clojurescript (10)
- # core-async (47)
- # cursive (32)
- # datomic (35)
- # events (1)
- # fulcro (24)
- # funcool (2)
- # graphql (2)
- # jobs (3)
- # juxt (2)
- # leiningen (3)
- # luminus (1)
- # off-topic (7)
- # om (1)
- # onyx (2)
- # pedestal (32)
- # perun (2)
- # portkey (2)
- # re-frame (4)
- # ring-swagger (2)
- # rum (3)
- # shadow-cljs (137)
- # spacemacs (4)
- # testing (3)
- # tools-deps (101)
- # uncomplicate (2)
- # unrepl (5)
- # vim (2)
Is there an easy way to run all tests in a project within Cursive?
Couldn't you create a repl command and then call (clojure.test/run-all-tests)? @cfleming (assuming a repl is open?)
Yes, you could definitely do that - you wouldn’t get the integration with the red/green icons, but other than that it should work fine.
I do plan to add a proper test runner at some point, but there’s been surprisingly little demand for it.
@peterwestmacott No, sadly - I’ve been meaning to add a test runner, but right now you’ll have to use lein or whatever you’re using to build.
it looks like it isn’t too much code to add a helper function to my user
ns, I just didn’t want to be doing something needless.
@carr0t I’m not sure. It might make it easier to support boot projects using deps.edn for their dependencies, and in general understanding IntelliJ’s new build tool framework has helped too.
@cfleming I'm just looking into fixing cljdoc for cursive — can you tell me where I can set an alias again? 😄
(that will be used for any cursive invocations/classpath calculations)
There are two parts - when Cursive syncs the project, which means it works out which libs you’re using and where your source roots are. For that part, you generally want the superset of the various aliases you use. That’s in View->Tool Windows->Clojure Deps, then open the Aliases tree, select the ones you want and hit the refresh icon.
That should cause Cursive to find your deps (you can check that in the deps Tool Window too) and your source roots (will be marked in blue or green in the Project Tool Window)
I have this but am not seeing an aliases tree
the Clojure Deps window is empty, this comes up once I press the wrench
ah wait, I think I might have missed something
ok, well. I just moved everything to jars now and it seems to be working 👍
I also dropped the alias because it actually doesn't make much of a difference
Is macro-resolution support for better-cond something that could make its way onto the roadmap? (https://github.com/Engelberg/better-cond/issues/5) I've seen better-cond come up in discussion several times recently and would like to use it, but I rely so much on Cursive's refactoring support that I can't bear all the unresolved symbols
@martinklepsch That’s not the deps toolwindow you’re looking at there.
View->Tool Windows->Clojure Deps is the menu sequence that will take you to the toolwindow
@cfleming I know but there wasn't a project listed there. There is now but earlier it was empty
Right, you’ll have to import the project for that to show anything. There are no docs yet but I wrote a bit about this here: https://groups.google.com/d/msg/cursive/NQIJzhGjfEY/hdNXUco8CgAJ
@cfleming Why I can't choose Deps in Mac version? (it is disabled)
@cfleming Sorry. Didn't catch...can't find how to run deps via Lein section?
Yes. I have both. But I didn't import, just Opened project folder
@cfleming Got it. I removed project.clj, re-imported project again, selected deps.edn (external model) and now Deps section is active.