polylith

https://polylith.gitbook.io/ and https://github.com/polyfy/polylith
john-shaffer 2021-05-13T22:12:15.211500Z

Is there a flag for a stack trace/debugging? I'm just seeing

λ clj -M:poly help
Don't know how to create ISeq from: clojure.lang.Symbol
λ clj -M:poly info
Don't know how to create ISeq from: clojure.lang.Symbol

seancorfield 2021-05-13T22:28:19.212100Z

@jshaffer2112 I would expect that to either be a problem in your deps.edn or your workspace.edn files.

seancorfield 2021-05-13T22:28:59.212600Z

(most likely one or more of your deps.edn files I suspect)

seancorfield 2021-05-13T22:29:35.213400Z

Can you try clojure -A:dev -Stree and see if that succeeds? That should validate your top-level deps.edn file, or at least the :dev alias in it.

john-shaffer 2021-05-13T22:30:03.213600Z

That works fine

seancorfield 2021-05-13T22:30:29.213800Z

What is your :poly alias?

john-shaffer 2021-05-13T22:31:33.214Z

:poly {:extra-deps {polyfy/polylith
                      {:git/url "<https://github.com/polyfy/polylith.git>"
                       :sha "65a7918bb6de886cda7a9b8a5fe7dbdf10996bf8"
                       :deps/root "projects/poly"}}
         :main-opts  ["-m" "polylith.clj.core.poly-cli.core"]}

seancorfield 2021-05-13T22:35:15.214400Z

Hmm, that’s the latest issue-66 which is what I’m using.

seancorfield 2021-05-13T22:35:52.214900Z

Is this a public project I can take a look at?

seancorfield 2021-05-13T22:36:40.215400Z

(I’m still betting on a bad deps.edn file somewhere in the project)

john-shaffer 2021-05-13T22:38:20.215800Z

It's not public, but I got a stack trace so I can track it down

john-shaffer 2021-05-13T22:38:33.216100Z

:local/root is great

john-shaffer 2021-05-13T22:42:42.216600Z

polylith.clj.core.workspace-clj.namespaces-from-disk/import throws on (:import com.opentable.db.postgres.embedded.EmbeddedPostgres)

john-shaffer 2021-05-13T22:42:59.216900Z

easy to change the import to []

john-shaffer 2021-05-13T22:45:54.218100Z

Looks like it was already fixed in master

seancorfield 2021-05-13T22:47:34.218700Z

Oh, interesting. I tend to forget that Polylith tries to parse code…

john-shaffer 2021-05-13T22:48:21.220100Z

It's really weird that it does that even for help and version. I thought it had to be deps.edn or workspace.edn too, but I couldn't find anything wrong there

seancorfield 2021-05-13T22:48:23.220200Z

Hopefully, @tengstrand will be updating the issue-66 branch soon and maybe he can merge in that bug fix from master too…

john-shaffer 2021-05-13T22:48:44.220400Z

Thanks for taking a look