This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-20
Channels
- # announcements (1)
- # babashka (32)
- # beginners (100)
- # cider (43)
- # clj-kondo (4)
- # cljdoc (3)
- # cljs-dev (5)
- # cljsjs (2)
- # cljsrn (22)
- # clojure (170)
- # clojure-australia (27)
- # clojure-europe (25)
- # clojure-nl (3)
- # clojure-uk (76)
- # clojurescript (127)
- # conjure (14)
- # core-matrix (1)
- # cursive (9)
- # datomic (6)
- # defnpodcast (1)
- # emacs (32)
- # events (1)
- # expound (77)
- # fulcro (30)
- # graalvm (21)
- # graalvm-mobile (30)
- # helix (4)
- # honeysql (1)
- # hyperfiddle (1)
- # jackdaw (8)
- # jobs (6)
- # kaocha (1)
- # leiningen (4)
- # lsp (16)
- # malli (46)
- # meander (4)
- # off-topic (19)
- # pathom (10)
- # podcasts (1)
- # portal (2)
- # re-frame (7)
- # reagent (2)
- # releases (1)
- # remote-jobs (11)
- # rewrite-clj (8)
- # shadow-cljs (9)
- # tools-deps (243)
- # vim (1)
Whenever I Refresh (two rounded arrows) Clojure Deps I lose all the directories that have previously been marked as source. Is there a way to make my intentions stick?
Yes, you need to ensure that they’re declared in your deps.edn file. Then they’ll be restored on every refresh.
Oh thanks, that makes sense. I'm experimenting with Polylith and there's a lot of 'declaring in your deps.edn file' required.
Oh, I see - I actually have a couple of improvements scheduled for the next release cycle which are for Polylith
Like auto-adding source directories to the development (root level) deps.edn file perhaps? Every time a new component this needs to be done. The polylith tool could do this itself but for the moment it doesn't. Personally I wish it did. So if you add a new component called database (`clj -M:poly create component name:database`) make sure this string: "components/database/src" is in [:aliases :dev :extra-paths].
Hmm, I’m not sure about that - that sounds like it might be a change better placed in Polylith itself, the issue I’m looking at is https://github.com/cursive-ide/cursive/issues/2554. It sounds like it might be related, but I don’t understand polylith well enough to be sure. I haven’t used it myself.
I'm pretty sure he means 'not show up in blue' rather than 'not show up in green'. I think what's being said is that Cursive doesn't recognise extra-deps properly. It should be able to read from extra-deps and make the UI show the blue for the src directories.