Fork me on GitHub
#polylith
<
2021-05-13
>
john-shaffer22:05:15

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

seancorfield22:05:19

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

seancorfield22:05:59

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

seancorfield22:05:35

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-shaffer22:05:03

That works fine

seancorfield22:05:29

What is your :poly alias?

john-shaffer22:05:33

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

seancorfield22:05:15

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

seancorfield22:05:52

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

seancorfield22:05:40

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

john-shaffer22:05:20

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

john-shaffer22:05:33

:local/root is great

john-shaffer22:05:42

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

john-shaffer22:05:59

easy to change the import to []

john-shaffer22:05:54

Looks like it was already fixed in master

seancorfield22:05:34

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

john-shaffer22:05:21

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

seancorfield22:05:23

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

john-shaffer22:05:44

Thanks for taking a look