Anyone seen this problem before?
Syntax error (ClassNotFoundException) compiling at (antq/core.clj:8:1).
antq.core
Full report at:
/tmp/clojure-14882844485242985315.ednI've seen it with 0.2.19 and 0.2.20-SNAPSHOT
running any command with clj -M:poly
overwriting antq with the latest version does not help either
deleting the .m2 directory does not help either
No, haven’t seen it. And you don’t get it with 0.2.18?
LMS
actually it works with 0.2.18 😕 huh
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
Have you tried the compiled version of the tool? What happens if you run poly version in a non-polylith directory?
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.
At least you didn't get that error, so then it seems like the compiled version works.
So the problem occur when you run the poly or clojure -M:poly command inside your workspace?
when I run clj -M: poly with any command (it seems)
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.
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.
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
Let’s see if anybody else can reproduce this. Have you used 0.2.18 the last year or so?
I mean, has 0.2.19 ever worked for you?
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.
clojure -Stree -M:poly works and shows the dependencies with 0.2.20-SNAPSHOT and with :local/root
it must be a problem locally because it works in CI
it's just annoying
Yes, it’sa really strange problem.