This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-20
Channels
- # announcements (16)
- # aws (1)
- # babashka (24)
- # beginners (54)
- # calva (25)
- # cider (4)
- # cljs-dev (2)
- # clojure (16)
- # clojure-dev (39)
- # clojure-europe (18)
- # clojure-nl (1)
- # clojure-uk (4)
- # clojurescript (66)
- # core-async (16)
- # cursive (13)
- # datomic (15)
- # deps-new (1)
- # duct (22)
- # fulcro (20)
- # jobs-discuss (1)
- # kaocha (3)
- # lsp (11)
- # malli (8)
- # off-topic (38)
- # other-languages (18)
- # polylith (18)
- # portal (15)
- # react (2)
- # reagent (9)
- # reitit (7)
- # releases (10)
- # reveal (1)
- # sci (13)
- # shadow-cljs (3)
- # specter (4)
- # sql (4)
- # xtdb (16)
Hello guys. I’ve noticed some weird behavior when I’m trying to start the duct system I have such code
(let [full-config (duct/prep-config config)
system (ig/init full-config)
and it failed to start the system because some of the references stay untouched
by saying references I mean this #integrant.core.Ref{:key :some/key}
The expected behavior is to have the output from the ig/init-key
multimethod call instead of the #integrant.core.Ref{:key :some/key}
I thought it’s probably due to some issues inside my config but the interesting thing is if I’ll evaluate (duct/prep-config config)
in the REPL and copy the output to the (ig/init ...)
call the system will start and will work properly
Will be really appreciative any helpYes, but error has nothing with duct. It complains that instead of handler function for pedestal service I have a map integrant.core.Ref{:key :some-key}
Hello again I think I found something interesting my configuration looks like this
{:duct.core/project-ns test,
:duct.core/environment :development,
:flakes.web/http {:port 8080,
:routes #integrant.core.Ref{:key :flakes.web/routes},
:env #integrant.core.Ref{:key :duct.core/environment}},
:flakes.web.http-test/handler {:context #integrant.core.Ref{:key :flakes.web/context}},
:flakes.web/context {:some "configuration"},
:flakes.web/routes {:root test,
:routes [["/test-route" {:get #integrant.core.Ref{:key :flakes.web.http-test/handler}}]]}}