This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-05
Channels
- # announcements (8)
- # babashka (6)
- # beginners (55)
- # biff (8)
- # calva (11)
- # cider (4)
- # clj-kondo (6)
- # cljdoc (23)
- # cljs-dev (22)
- # clojure (89)
- # clojure-brasil (3)
- # clojure-europe (47)
- # clojure-indonesia (1)
- # clojure-nl (1)
- # clojure-spec (3)
- # clojure-uk (5)
- # clojurescript (67)
- # community-development (2)
- # conjure (29)
- # cursive (2)
- # datalog (29)
- # datomic (41)
- # defnpodcast (4)
- # emacs (15)
- # google-cloud (5)
- # holy-lambda (6)
- # hyperfiddle (3)
- # introduce-yourself (8)
- # jobs (1)
- # malli (19)
- # meander (41)
- # nrepl (1)
- # off-topic (30)
- # pathom (22)
- # polylith (30)
- # releases (1)
- # remote-jobs (4)
- # sci (4)
- # shadow-cljs (1)
- # spacemacs (7)
- # specter (3)
- # tools-build (16)
- # tools-deps (2)
just a quick question regarding resources, should i need to specify resource paths in my bases or only in my components I have a component failing its test due to missing resources, I mentioned this the other day and work around the issue. what I am noticing is it passes in one project but not a second so one of the projects is aware of the resource the second is not
Well, uh, that depends on where the required resources are. If you need a file from there, something needs to add the path to the classpath
For example we have a component that gets a config file from resources, but the file itself is under projects (different in a different project)
well the resources I have in the component, I dont get why one project can see the resource but another can
they are both including the component in the deps.edn files using local/root which should make the resources available to both ?
poly/document-templates {:local/root "../../components/document-templates"}
So I have that in both deps files which I am expecting to mean the resources from that component would be available to both by adding that lineI meant that check the actual classpath that clojure tooling calculates for you, just to make sure that there isn't something fishy like misplaces parenthesis or anything like that
Try https://gist.github.com/ekoontz/1502838 or what would work for you
Just a couple of weeks ago I had a surprise of finding stuff in classpath/resources I hadn't added yet, just to check how things work. Turned out that dependency had some extra crap there with same filenames (well, index.html is pretty common filename)
https://colourcoding.net/2010/06/20/printing-the-current-classpath-from-the-clojure-repl/ seems like a nicer spell to get the classpath out
I do see this output #object[java.net.URL 0x1dc277f4 "file:components/api-postmark/resources/"]
strangely this does not get printed when i run tests from the working project even thought the tests run, could be the test runner is capturing the output though
Is there any reason https://github.com/polyfy/polylith/blob/abd20bb656e2cdd712732d80e1238316d3ea1b7f/components/shell/src/polylith/clj/core/shell/candidate/selector/ws_explore.clj#L4-L25 in the polylith tool self-referencing itself?
I think it is to get a shorter syntax #'ws-explore/select
on line https://github.com/polyfy/polylith/blob/abd20bb656e2cdd712732d80e1238316d3ea1b7f/components/shell/src/polylith/clj/core/shell/candidate/selector/ws_explore.clj#L25
Looks like it’s a mistake and that we should use the shorter syntax as you suggest.
No, no trick!
Merged!