Fork me on GitHub
#pedestal
<
2024-03-08
>
agorgl09:03:49

Hello! Is latest pedestal snapshot version in clojars broken? I get this:

Caused by: java.io.FileNotFoundException: Could not locate io/pedestal/tracing__init.class, io/pedestal/tracing.clj or io/pedestal/tracing.cljc on classpath.

agorgl09:03:23

Hmm I just looked at the latest embedded template and I suppose that just

io.pedestal/pedestal.jetty {:mvn/version "0.7.0-SNAPSHOT"}
in deps is not enough, we need
io.pedestal/pedestal.service {:mvn/version "0.7.0-SNAPSHOT"}
in addition

hlship15:03:19

Running everything locally and for tests I tend to have the entire classpath rolled together. It looks like there a missing dependency in pedestal.service; could you share your entire project.clj or deps.edn? It’s possible you are mixing and matching versions (intentionally or not).

hlship18:03:26

I'm pretty sure this is something in your build, some mix-and-match of dependencies. I've checked that pedestal.jetty has a dependency on pedestal.service, and it has a dependency on pedestal.telemetry.

agorgl18:03:33

My repo is based on the deps-new template in this commit exactly https://github.com/pedestal/pedestal/tree/39abf2f4d3edc29aef889e91f2800b5703012909/embedded The funny thing is that it worked without problems the past few weeks and yesterday I launched my repl and stumbled upon the above problem

hlship18:03:27

Can you do a clj -Stree? Need to see the dependency structure to understand.

agorgl18:03:19

Yeah let me get home and I'll report back in 20'

agorgl19:03:35

Funny thing, I added io.pedestal/pedestal.service {:mvn/version "0.7.0-SNAPSHOT"} to my deps, build worked (after the above error) and after I removed it again (`io.pedestal/pedestal.service {:mvn/version "0.7.0-SNAPSHOT"}`) the build still seems to work

agorgl19:03:35

I'm starting to believe that I had the latest io.pedestal/pedestal.jetty snapshot but not the latest io.pedestal/pedestal.service snapshot and adding io.pedestal/pedestal.service to the deps list kinda forced it to pull the latest snaphot one with tracing

agorgl19:03:45

I should had run clj -Stree before adding the io.pedestal/pedestal.service to deps to be able and verify this, well it works now so it doesn't really matter