This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-12
Channels
- # announcements (6)
- # babashka (45)
- # beginners (4)
- # calva (19)
- # cider (2)
- # clj-kondo (10)
- # clj-yaml (10)
- # clojure (25)
- # clojure-boston (1)
- # clojure-conj (3)
- # clojure-europe (34)
- # clojure-losangeles (5)
- # clojure-nl (1)
- # clojure-norway (11)
- # clojure-uk (2)
- # clojurescript (84)
- # cursive (10)
- # datalevin (3)
- # figwheel-main (1)
- # fulcro (1)
- # jobs (5)
- # joyride (25)
- # lsp (17)
- # malli (18)
- # nbb (1)
- # off-topic (1)
- # re-frame (22)
- # remote-jobs (9)
- # scittle (3)
- # shadow-cljs (26)
- # sql (16)
- # tools-build (12)
- # xtdb (44)
I have a Clojure project structured as follows:
+mercator
|
src
|
mercator
|
+api-emitters
| +dates.clj (containing ns mercator.dates)
| +medical_claims.clj (containing ns mercator.medical-claims)
| +set.clj (containing ns mercator.set)
| +...
|
+mapper.clj (containing ns mercator.mapper)
+primitives.clj (containing ns mercator.primitives)
+emitters.clj (containing ns mercator.emitters)
+templates (containing ns mercator.templates, referring to ns mercator.dates, mercator.medical-claims, etc.)
+...
I've got my :paths set up in the project's deps.edn as follows:
{:paths
["src" "src/mercator/api-emitters"]
... }
But when I try to load mapper.clj, I get the error:
; Evaluating file: mapper.clj
; Syntax error (FileNotFoundException) compiling at (mercator\templates.clj:1:1).
; Could not locate mercator/dates__init.class, mercator/dates.clj or mercator/dates.cljc on classpath.
; Evaluation of file mapper.clj failed: class clojure.lang.Compiler$CompilerException
What should I do in my deps.edn file to allow me to reference the clj files in src/mercator/api-emitters from the clj files in src/mercator?
The paths have to match the namespaces under a root
So it seems you need to have more sub paths under api-emitters as those do not