Fork me on GitHub
#cljsrn
<
2020-04-25
>
skuro08:04:55

hey hey, I'm trying out krell for the first time and I don't seem to be able to make the minimal setup work. I get

Connecting to MyApp unknown (192.168.57.103:5003) ...

#error {
 :cause Connection timed out (Connection timed out)
 :via
 [{:type .ConnectException
   :message Connection timed out (Connection timed out)
   :at [.PlainSocketImpl socketConnect PlainSocketImpl.java -2]}]
even if
$ lsof -n -i tcp:5003
COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
adb     21110 skuro   16u  IPv4 160953      0t0  TCP 127.0.0.1:5003 (LISTEN)
java    24005 skuro   60u  IPv6 158425      0t0  TCP 192.168.57.1:57250->192.168.57.103:5003 (SYN_SENT)

skuro08:04:09

any hint at where things could go wrong

dotemacs08:04:10

Try to use the latest code from krell repo, as it’s been changed to not rely on zeroconf to pick up the IP & port

skuro09:04:45

alright, I upped the krell dep to the latest commit, restarted the app & the krell repl, there's no timeout at the moment but the emulator is stuck at Waiting for krell to load files while the REPL is stuck at Waiting for device connection on port 5001 so I guess there's no timeout anymore because there's no actual connection attempt?

Michaël Salihi12:04:48

After upped the dep in deps.edn, did you drop the .cpcache folder ? @dnolen reminded not to forget this step on this channel.

Oliver George09:04:33

What operating system? Which simulator?

Oliver George09:04:22

My experience is that macOS and iOS loads consistently

4
Oliver George09:04:51

David has been using android to work out kinks so it shouldn't be a nonstarter

Oliver George09:04:11

It’s all very young though so surprises are likely

skuro09:04:21

I'm on Linux / Genymotion Android emulator

Oliver George10:04:08

I can’t talk to that. Sorry.

skuro10:04:51

mhhh alright, I started with a fresh project, following the reagent tutorial but with the updated krell dep version, now things work!

👍 4
skuro10:04:27

I guess the target folder had some leftovers from the previous krell version which caused the Matrix glitch

Oliver George10:04:14

Glad you sorted it out.

skuro11:04:30

thanks for your support!

skuro12:04:18

@admin055 good to know, I missed that

dnolen15:04:32

@skuro glad to know Android is working

skuro15:04:21

@dnolen it works indeed, but I also experienced many Connection lost errors, e.g. ensure it works, leave to read up some documentation, back to the REPL and got the error

dnolen15:04:59

@skuro hrm that's interesting, open a issue saying that the socket connection doesn't seem to be kept alive - I will try that myself next week

dotemacs16:04:22

This also happens with shadow-cljs, when Android is used, where the websocket connection just times out. To repair it, you’ve got to manually quit :cljs/quit and re-connect.