This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-21
Channels
- # announcements (9)
- # babashka (45)
- # beginners (45)
- # calva (1)
- # clojure (40)
- # clojure-austin (16)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-norway (35)
- # clojure-uk (4)
- # clojurescript (11)
- # conjure (3)
- # cursive (4)
- # datalevin (14)
- # datavis (1)
- # datomic (8)
- # emacs (6)
- # hyperfiddle (7)
- # introduce-yourself (3)
- # joyride (17)
- # missionary (16)
- # off-topic (2)
- # pedestal (9)
- # polylith (27)
- # re-frame (7)
- # reitit (1)
- # releases (1)
- # shadow-cljs (17)
- # sql (17)
- # tools-build (19)
- # tools-deps (15)
- # xtdb (15)
I asked at first this question in #C1Q164V29 chan. But according to discussion with @seancorfield, this is a Polylith concern. We mainly run test locally in the repl. I tried to launch project test locally in a terminal but I am facing another issue, not allowing to reproduce.
Could you create a PR with a minimal workspace under https://github.com/polyfy/polylith/tree/master/examples where you recreate the problem @U01BZRQA0ER? Then I can have a closer look + include it in the regression test suite.
@U1G0HH87L I will try to free time to do so.
Minimal workspace is not so easy. I want to create a workspace enough representative to our (big) project in order to reproduce. It implies at least 2 bases, 2 components and 2 projects.
Sounds good!
Hi @U1G0HH87L, I worked on this example. But I am quite new to Polylith and I am facing an issue. Sounds my tests are not launched when I use poly test
command. I have some log in my test setup but nothing is printed and it show 0s left for the test.
I stored my code here:
https://github.com/patinside/sql_classpath_issue
Maybe something evident but did not catch yet the point.
I have a couple of questions @U01BZRQA0ER:
ā¢ Do you use the latest 0.2.19 version of the poly
tool?
ā¢ Have you used the latest documentation for https://cljdoc.org/d/polylith/clj-poly/0.2.20-SNAPSHOT/doc/readme?
You have added the bricks with extra-paths
but it's better if you switch to :local/root
which is described in the documentation. If you do that, then you can clean up your ./deps.edn
file and move your libraries to each deps.edn
file in your bricks. I could see that you had missed to add a few paths, but if you do these changes, then will be easier also to get it right!
You can use :local/root
like this:
And also, it looks like a belt
component https://github.com/patinside/sql_classpath_issue/blob/fc40e777d3fbe079f9aba15fea7fe132e745d08a/projects/data/test/project/data/test_setup.clj#L5 (the test fails).
I don't use the latest version of poly tool I think. How do you get the version (tried --version, -v)
I used the tutorial in clojure-polylith-realworld-example-app repo.
I will test your proposal. But I wanted to be as close as possible to our project. Do you think such configuration with extra-paths
may impact the classpath issue we are facing?
You could try to use the latest version of the poly
tool, together with the :local/root
syntax, and see if it helps. It should clean up your code at least!
If you still have problems, then we can continue from there.
And remember, if you use Cursive, you need to follow the instructions https://cursive-ide.com/userguide/polylith.html.
Okey, they you should be fine.
Try to move your libraries into the bricks where they belong also, so that you don't have do specify them again in all your projects.
You can begin with 0.2.18, and if you still have problems, try using 0.2.19.
Works better with :local-root
syntax. I am now facing some strange issue regarding the deps. For the data-api
base, I have to require HikariCP
while it is used in the sql
component and declared in the component deps.edn
. Same for hugsql
.
That sounds strange. Maybe you can reproduce that in your repository that you shared?
Okay, will have a look.