polylith

timo 2024-06-27T08:50:12.510429Z

Anyone seen this problem before?

Syntax error (ClassNotFoundException) compiling at (antq/core.clj:8:1).
antq.core

Full report at:
/tmp/clojure-14882844485242985315.edn

timo 2024-06-27T08:50:47.969529Z

timo 2024-06-27T08:51:22.283879Z

I've seen it with 0.2.19 and 0.2.20-SNAPSHOT

timo 2024-06-27T08:52:08.433419Z

running any command with clj -M:poly

timo 2024-06-27T08:52:31.441119Z

overwriting antq with the latest version does not help either

timo 2024-06-27T08:52:45.549659Z

deleting the .m2 directory does not help either

tengstrand 2024-06-27T13:06:16.880819Z

No, haven’t seen it. And you don’t get it with 0.2.18?

timo 2024-06-27T13:06:46.319219Z

LMS

timo 2024-06-27T13:08:13.961279Z

actually it works with 0.2.18 😕 huh

timo 2024-06-27T13:10:48.596089Z

even when pinning 0.2.19 and 0.2.20-SNAPSHOT with the antq version from 0.2.18 ("2.7.1147") it does not work

tengstrand 2024-06-27T13:22:25.649059Z

Have you tried the compiled version of the tool? What happens if you run poly version in a non-polylith directory?

timo 2024-06-27T13:23:41.519549Z

I am running the compiled version of poly in version 0.2.20-SNAPSHOT currently and it works as intended. when I run it in a non-polylith dir it returns The command can only be executed from the workspace root, or by also passing in :: or ws-dir:DIR.

tengstrand 2024-06-27T13:25:13.382869Z

At least you didn't get that error, so then it seems like the compiled version works.

tengstrand 2024-06-27T13:25:59.772729Z

So the problem occur when you run the poly or clojure -M:poly command inside your workspace?

timo 2024-06-27T13:26:34.679359Z

when I run clj -M: poly with any command (it seems)

tengstrand 2024-06-27T13:28:33.927459Z

Hmm...interesting. You could try to clone the https://github.com/polyfy/polylith and then point to it in the root deps.edn file like https://github.com/polyfy/polylith/blob/e7bc1574bbce638a4b5dc7af93cfec409135c354/examples/profiles/deps.edn#L28.

tengstrand 2024-06-27T13:29:48.751969Z

You could then try to create an empty directory, and create a deps.edn file in there, with that row to the :poly alias, and see if you can run clojure -M:poly version from there.

timo 2024-06-27T14:56:09.477139Z

It's both the same error from the original message, from my poly repo and from an empty repo with the dependency pointing to local/root with the latest master branch

tengstrand 2024-06-27T15:08:12.154349Z

Let’s see if anybody else can reproduce this. Have you used 0.2.18 the last year or so?

tengstrand 2024-06-28T04:01:28.776229Z

I mean, has 0.2.19 ever worked for you?

tengstrand 2024-06-28T05:29:14.543959Z

Can you execute clojure -Stree -M:poly ? And if that doesn't work, try clojure -Stree -M:poly219 and clojure -Stree -M:poly218 from that directory that uses the cloned polylith repo.

timo 2024-06-28T06:13:25.066829Z

clojure -Stree -M:poly works and shows the dependencies with 0.2.20-SNAPSHOT and with :local/root

timo 2024-06-28T06:13:43.624459Z

it must be a problem locally because it works in CI

timo 2024-06-28T06:14:06.824599Z

it's just annoying

tengstrand 2024-06-28T06:19:55.473089Z

Yes, it’sa really strange problem.