This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-21
Channels
- # 100-days-of-code (1)
- # announcements (2)
- # beginners (164)
- # cider (23)
- # cljs-dev (30)
- # cljsjs (11)
- # cljsrn (7)
- # clojure (116)
- # clojure-boston (1)
- # clojure-dev (20)
- # clojure-finland (2)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-uk (10)
- # clojurescript (39)
- # core-async (19)
- # cursive (43)
- # data-science (2)
- # datomic (24)
- # emacs (10)
- # figwheel-main (20)
- # fulcro (63)
- # hoplon (7)
- # hyperfiddle (7)
- # instaparse (3)
- # kaocha (1)
- # nrepl (3)
- # off-topic (170)
- # onyx (13)
- # other-languages (3)
- # parinfer (13)
- # re-frame (39)
- # reagent (5)
- # reitit (22)
- # ring-swagger (4)
- # shadow-cljs (284)
- # spacemacs (2)
- # sql (27)
- # testing (28)
- # unrepl (2)
so, I'm trying to set up a cljs repl with deps.edn on cursive. It's not particularly easy. the workflow that cursiveIDE is comfortable with is to start an nREPL, connect to it, and run
(do
(use 'figwheel-sidecar.repl-api)
(start-figwheel!) ;; <-- fetches configuration
(cljs-repl))
is there an equivelent repl command to start the figwheel main repl?> Using figwheel.main from a script > See the figwheel.main/start function and the figwheel.main/start-join functions.
hmm. alright, gettin closer, I just have to figure out some way to supply it with default config parameters, or I need to learn what config to supply...
hurm... maybe I'll just see if I can get sidecar working until https://github.com/bhauman/figwheel-main/issues/112 has some progress on it.
thanks, sorry about all that. All the necessary ingredients were, of course, in the docs.
I'm having these annoying errors quite frequently
VM2250 repl.js:817 REPL eval error TypeError: Cannot read property 'reload_namespaces' of undefined
at eval (eval at figwheel$repl$eval_javascript_STAR__STAR_ (VM2250 repl.js:784), <anonymous>:1:15)
at figwheel$repl$eval_javascript_STAR__STAR_ (VM2250 repl.js:784)
at VM2250 repl.js:835
at Object.G__12749__2 (VM1957 core.js:35816)
at Object.G__12749 [as call] (VM1957 core.js:36083)
at goog.net.WebSocket.<anonymous> (VM2250 repl.js:1091)
at goog.net.WebSocket.goog.events.EventTarget.fireListeners (VM2121 eventtarget.js:284)
at Function.goog.events.EventTarget.dispatchEventInternal_ (VM2121 eventtarget.js:381)
at goog.net.WebSocket.goog.events.EventTarget.dispatchEvent (VM2121 eventtarget.js:196)
at goog.net.WebSocket.onMessage_ (VM2249 websocket.js:426)
figwheel$repl$eval_javascript_STAR__STAR_ @ VM2250 repl.js:817
(anonymous) @ VM2250 repl.js:835
G__12749__2 @ VM1957 core.js:35816
G__12749 @ VM1957 core.js:36083
(anonymous) @ VM2250 repl.js:1091
goog.events.EventTarget.fireListeners @ VM2121 eventtarget.js:284
goog.events.EventTarget.dispatchEventInternal_ @ VM2121 eventtarget.js:381
goog.events.EventTarget.dispatchEvent @ VM2121 eventtarget.js:196
goog.net.WebSocket.onMessage_ @ VM2249 websocket.js:426
Navigated to
base.js:677 goog.require could not find: figwheel.core
and normally a lein clean
and restart fix it
but I wonder why it happens
anyone had similar issues?
I suspect that this thing I added is somehow causing this https://github.com/AndreaCrotti/elo/blob/master/src/cljs/elo/vega.cljs#L49
it works perfectly fine a few times, then one of the reload fails and from then it's messed up