Fork me on GitHub
#cljsrn
<
2020-07-03
>
benny00:07:46

trying out krell but when the app loads it just says “waiting for krell to load files” — can’t find anything out there about it, common noob problem?

joshmiller01:07:35

You could try reloading (either cmd/ctrl-R in a simulator or shake and tap reload on a device).

benny01:07:28

I did try that and rebuilding unfortunately

benny01:07:43

even tried wiping the device

joshmiller01:07:03

Have you tried on a simulator at all?

benny01:07:41

just Android emulator. I intentionally removed my ios stuff

joshmiller01:07:19

On a real device you might have a network issue, just checking on that.

joshmiller01:07:36

Does your Krell repl say that it’s waiting for a connection?

benny01:07:58

nope it goes to a prompt when the app loads

joshmiller01:07:49

What’s the prompt? (i.e., user or cljs.user?)

joshmiller01:07:06

Does it ever say e.g. “Waiting for connections on port 5001”?

benny01:07:02

❯ clj -m krell.main -co build.edn -c -r                                                                 
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See  for further details.

Waiting for device connection on port 5001
ClojureScript 0.0.34032155
cljs.user=> 

benny01:07:08

looks like i am getting this sometimes in metro

[Thu Jul 02 2020 20:57:07.745]  LOG      Bootstrap from cache failed: [TypeError: undefined is not an object (evaluating 'KRELL_CACHE.get(toPath("goog/deps.js")).source')]

benny02:07:18

welp, i feel like an idiot, it’s because i was coming from a shadow project and was still using init in my core class referenced instead of main

benny02:07:55

even better news, cljs-http is working! thanks for the nudge into krell @joshmiller

joshmiller02:07:13

Don’t feel too dumb, there are still lots of places where it’s hard to get good insight into what’s going on.

joshmiller02:07:31

I screw up similarly constantly still.

benny02:07:49

thanks 😉

dotemacs10:07:17

Whatever issue you had couldn’t have been shadow specific