This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-28
Channels
- # announcements (9)
- # aws (2)
- # beginners (45)
- # biff (2)
- # calva (20)
- # cider (4)
- # cljdoc (15)
- # cljs-dev (9)
- # clojure (102)
- # clojure-austin (14)
- # clojure-europe (39)
- # clojure-france (3)
- # clojure-germany (1)
- # clojure-norway (39)
- # clojure-spec (1)
- # clojure-uk (3)
- # conjure (8)
- # cursive (6)
- # datahike (3)
- # datomic (8)
- # emacs (28)
- # events (1)
- # holy-lambda (6)
- # hyperfiddle (13)
- # jobs (11)
- # keechma (2)
- # lsp (4)
- # malli (34)
- # nbb (36)
- # off-topic (52)
- # pathom (5)
- # pedestal (2)
- # portal (1)
- # reagent (2)
- # reitit (3)
- # remote-jobs (1)
- # scittle (1)
- # spacemacs (2)
- # xtdb (5)
Sorry, how do I run a photon demo? Geoffrey walked me through the code today but I only remember running cider-jack-in-clj
and picking clojure-cli
. Now when I do that in user.demo-1-healthcheck
and eval
#?(:clj (user/browser-main! `main))
it says
shadow-cljs has not been started yet!
(user/main)
src-dev/user.clj (also see user.cljs)
Ok, I'm able to run the demos by running user/main and then running user/browser-main! main for each demo. I copied a demo into scratch and changed the namespace to match. Running (user/browser-main!
main) stops the old running demo but doesn't start anything new.
File is at photon/scratch/richie/seven_guis/core.cljc
ns is richie.seven-guis.core
and I changed the ns in :require-macros to match. No other changes.
The photon-starter-app says
Encountered error when macroexpanding hyperfiddle.photon/main.
Failed to resolve macro expander
Thanks!did you :require from user.clis
src-dev/user.clis
dom/node is the new API in the dev branch; did geoffrey onboard you to the dev branch or master?