Fork me on GitHub
#figwheel-main
<
2018-11-21
>
idiomancy03:11:30

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?

idiomancy03:11:07

> Using figwheel.main from a script > See the figwheel.main/start function and the figwheel.main/start-join functions.

idiomancy03:11:26

okay, that looks promising. Sorry took me a bit to find that

idiomancy03:11:21

oh... those are deprecated though?

idiomancy03:11:38

ahh now they're in .api

idiomancy03:11:36

lordy lordy... so many tools at once...

idiomancy03:11:22

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...

idiomancy04:11:22

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.

idiomancy04:11:49

YES!!! I did it!!

parrot 4
idiomancy04:11:02

I got figwheel-main working in Cursive!!!

idiomancy04:11:46

thanks, sorry about all that. All the necessary ingredients were, of course, in the docs.

idiomancy04:11:59

happy to help any other newbs!

andrea.crotti16:11:45

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

andrea.crotti16:11:52

and normally a lein clean and restart fix it

andrea.crotti16:11:56

but I wonder why it happens

andrea.crotti17:11:13

anyone had similar issues?

andrea.crotti17:11:00

it works perfectly fine a few times, then one of the reload fails and from then it's messed up