This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-10
Channels
- # aleph (4)
- # announcements (27)
- # aws (12)
- # aws-lambda (1)
- # beginners (207)
- # boot (4)
- # calva (8)
- # cider (9)
- # clj-kondo (9)
- # cljs-dev (27)
- # cljsrn (6)
- # clojure (104)
- # clojure-android (3)
- # clojure-dev (9)
- # clojure-finland (2)
- # clojure-italy (18)
- # clojure-spec (8)
- # clojure-uk (100)
- # clojurescript (43)
- # clojutre (1)
- # core-async (49)
- # cursive (18)
- # data-science (3)
- # duct (24)
- # events (2)
- # fulcro (27)
- # immutant (1)
- # off-topic (32)
- # om (2)
- # onyx (2)
- # pathom (14)
- # pedestal (2)
- # planck (3)
- # re-frame (38)
- # reagent (7)
- # reitit (10)
- # rewrite-clj (7)
- # ring-swagger (3)
- # shadow-cljs (32)
- # spacemacs (63)
- # test-check (16)
- # tools-deps (5)
- # vim (21)
@trevor670 looks like you are trying to eval the ns
in a CLJ REPL rather than a CLJS REPL
Thanks @thheller, I do choose 'CLJS' from the cursive REPL dropdown, but is there something else I should do too?
as I said you need to eval (shadow/repl :your-build-id)
. that will also automatically switch the select box
make sure you switched to your build REPL first via (shadow/repl :your-build-id)
@jiyinyiyong yeah that data isn't very accurate. It doesn't parse project.clj or deps.edn. only package.json and pom.xml
Ok, the tooling I want to use depends on a prepl. Is there a way to get one currently?
I'm on tooling bleeding edge. @olical conjure uses one for clojurescript on figwheel land, I want to try it over shadow.
I didn't spend too much time on prepl yet since it doesn't solve the "upgrade" problem
Interested in the upgrade problem since I never really saw it as a problem. I know with nREPL and stuff you connect to a Clojure REPL then somehow hop into a ClojureScript context (which I never really understood). As far as I know with prepl that's not the way you'd handle it, you just start two prepl ports, one for CLJ and one for CLJS. Which Conjure is designed around.
If you have an existing ClojureScript instance running, say, through figwheel. You can get the eval context and actually give that to the ClojureScript prepl server. This means you can basically attach a prepl server to any evaluation environment, I think.
See here for a little example of plugging a prepl server into figwheel https://oli.me.uk/2019-03-22-clojure-socket-prepl-cookbook/#figwheel_and_prepl
Funnily, I don’t really understand how one can have a prepl in CLJS 🤪 I should look into this soon
You’re still running the CLJS prepl server in the JVM process, right? Or is it somehow starting the repl in the JS process?
It'll still require a Clojure JVM I think yeah. I haven't used it much other than making sure it works. As that post shows though, you can plug a prepl into some other eval environment, it doesn't need to start it but it can. So you can have it boot it's own node instance to run in or you can jack it into something that's already running. (such as figwheel / shadow)
Does anyone use shadow-cljs and aws lambda? What libraries are you using?