This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-15
Channels
- # announcements (8)
- # asami (10)
- # babashka (16)
- # beginners (86)
- # calva (22)
- # chlorine-clover (9)
- # circleci (20)
- # clj-kondo (13)
- # cljs-dev (20)
- # cljsrn (3)
- # clojure (144)
- # clojure-australia (10)
- # clojure-europe (126)
- # clojure-italy (5)
- # clojure-nl (8)
- # clojure-norway (4)
- # clojure-serbia (9)
- # clojure-uk (7)
- # clojurescript (14)
- # cursive (20)
- # data-science (1)
- # datomic (20)
- # figwheel-main (5)
- # fulcro (23)
- # graalvm (7)
- # graphql (25)
- # honeysql (15)
- # hugsql (3)
- # jobs (2)
- # lambdaisland (2)
- # leiningen (4)
- # lsp (102)
- # malli (3)
- # off-topic (51)
- # overtone (5)
- # pathom (27)
- # portal (11)
- # quil (1)
- # re-frame (19)
- # reagent (31)
- # remote-jobs (1)
- # reveal (3)
- # rewrite-clj (56)
- # shadow-cljs (45)
- # startup-in-a-month (1)
- # tools-deps (9)
Good morning. I'm new to the community and have a question regarding the use of :extra-main-files and the repl if anyone wishes to give a bit of advice
i've created an additional file + associated namespace in the project watch-dirs, added the appropriate :extra-main-files entry, and can see the endpoint at http://localhost:9500/figwheel-extra-main/<id> as the documentation indicates
however, i'm unable to access that namespace in the repl unless i require it into the :main entry point file. a => (in-ns 'my.additional.ns) followed by a simple eval of a test function in that namespace results in a TypeError: my.additional.ns is undefined
any tip to having the repl honor the :extra-mains-file build?
• Update - i believe i figured it out. The session focus needs to switch. I was able to use the new namespace via repl in-ns by first opening the endpoint in the browser, refreshing, and then interacting with the namespace in the repl