This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-25
Channels
- # announcements (1)
- # beginners (70)
- # boot (2)
- # cider (12)
- # cljdoc (19)
- # clojure (25)
- # clojure-austin (1)
- # clojure-nl (2)
- # clojure-uk (9)
- # clojurescript (24)
- # cursive (7)
- # datomic (8)
- # figwheel-main (22)
- # flambo (1)
- # fulcro (16)
- # funcool (3)
- # jobs (1)
- # juxt (3)
- # off-topic (39)
- # reagent (4)
- # reitit (4)
- # ring (2)
- # shadow-cljs (90)
- # specter (11)
- # sql (2)
- # testing (2)
@bhauman Regarding using the Cursive REPL, I found this page but it seems like it’s used for figwheel and not figwheel-main. Would the same instructions still apply more or less? https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL
not at the moment, as I was playing around with the new CLI stuff. I could easily switch though
so I don’t use cursive, but there are two ways to go with a nrepl
or a clojure.main
REPL
Actually f I were you I’d head over to #cursive and ask, because these things are in flux at the moment.
with the nrepl you will need to make sure it starts with piggieback middleware and with clojure.main you just need to make sure your classpath is correct and after that you need to look at the scripting api to launch figwheel from whichever Clojure REPL you choose
are there any docs on starting an nrepl server with the required middleware? In theory Cursive supports just taking a hostname/port and can take it from there
I’m actually have decent luck so far with the clojure.main
REPL. seems to be working with just a few issues:
[Figwheel:WARNING] A "resources/public/index.html" exists but the "resources" directory is not on the classpath
the default server will not be able to find your index.html
and when sending code from the IDE to the REPL:
cljs.user=> (in-ns 'front-end.app)
nil
front-end.app=> (defn a-div []
[:div "I'm a sub div sort of thing"])
#object[ReferenceError ReferenceError: front_end is not defined]
(<NO_SOURCE_FILE>)
@risinglight I’m thinking you haven’t created a front-end app ns yet?