Closed kovasap closed 3 months ago
I use the following commands to install my development app, in case they are necessary to repro: https://github.com/metasoarous/oz/commit/4602ece17fe62bd058d15200881d65f1da06f8f8
Looks to me like you are getting a bad mix of dependency conflicts.
This excludes update-vals
, so you shouldn't be getting these WARNING: update-vals already refers to: #'clojure.core/update-vals in namespace: clojure.tools.analyzer.utils, ...
warnings.
So, my conclusion is that you are getting some old tools.analyzer
version "incompatible" with Clojure 1.11.+. Nothing to do with shadow-cljs, as it just shells out to the clojure
command and does absolutely nothing to modify deps.edn
. Probably just need to sort out your deps.edn
dependencies and resolve the conflicts.
I tried removing all my dependencies, reinstalling clojure, and removing my ~/.m2
dir to refresh dependencies. I still have the same issue with the same error. Posted on Clojure slack to get some more eyes on the issue.
I think you're right that this is not a shadow-cljs issue.
Wiping the dependencies does nothing if they just get restored in the same way. Since you are running deps.edn
just use clj -Stree
or so to sort out the dependency conflicts.
I just ran the compile on my machine and it worked fine. Could be that you have something in ~/.clojure/deps.edn
that messes with dependencies in some ways?
Ah! That helped me discover that oz
has a clojupyter
dep with an older tools.analyzer
. I excluded this lib (marked as :optional
) and now it works!
I just ran the compile on my machine and it worked fine. Could be that you have something in
~/.clojure/deps.edn
that messes with dependencies in some ways?
That is odd... I don't see anything there that could be related.
When running
clj -M:shadow-cljs watch app
for my repo at https://github.com/kovasap/biomarker-correlator, I get the following error. Strangely, I can eliminate this error when using the:mvn/version
of theoz
library at https://github.com/kovasap/biomarker-correlator/blob/f2bfa1c4cdbe53580a2e51973d6d85bef4ed1415/deps.edn#L4. Use of the:git/sha
version leads to this failure. I'd like to use the:git/sha
version because it contains a fix necessary for my code to work.The really strange part is that ALL of the
:git/sha
versions ofoz
I've tried from https://github.com/metasoarous/oz/commits/master/ run into the same issue, even those for which the code should be the same as the:mvn/version
like https://github.com/metasoarous/oz/commit/4602ece17fe62bd058d15200881d65f1da06f8f8. This makes me think there is some issue with the way either shadow-cljs or something lower down the stack manages git dependencies. Has anyone here seen this issue before, or think I should file it in another location?