Fork me on GitHub
#leiningen
<
2021-09-22
>
jumar19:09:25

I have this problem when using checkouts in one of my projects:

Caused by: java.io.FileNotFoundException: Could not locate fipp/ednize__init.class, fipp/ednize.clj or fipp/ednize.cljc on classpath.
When I remove the checkouts dir it works fine. Do you have an idea what might be wrong?

jumar19:09:13

The odd thing is that it's working fine for a more complex component in the same subsystem. Perhaps just a particular dependency causing classpath conflicts?

jumar20:09:36

Adding [fipp "0.6.24"] as a dev dependency helped but I'm not sure what's going on.

mikerod13:09:20

@U06BE1L6T you typically have the dependency listed somewhere in your lein :dependencies - such as the dev profile as you said. Then you also add the checkouts.

mikerod13:09:36

I don’t think you can just use checkouts with no actual :dependencies declaration anywhere

jumar11:09:17

The think is that the module I depend on (call it A) via checkouts ( and of course it’s also listed as a regular dependency in project.clj) depends on fipp but only as “dev” dependency (such as when running lein repl ) so it’s states in :dependencies of the dev profile in that module’s project.clj And while this works fine when not using checkouts, with them it forces me to also list fipp in the dev prodile in the main module (call it B). So I know need to repeat all the dev dependencies of module A in module B