cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
skuro 2020-04-25T08:41:55.313600Z

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 <http://java.net|java.net>.ConnectException
   :message Connection timed out (Connection timed out)
   :at [<http://java.net|java.net>.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-&gt;192.168.57.103:5003 (SYN_SENT)

skuro 2020-04-25T08:42:09.314100Z

any hint at where things could go wrong

dotemacs 2020-04-25T08:43:10.315100Z

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

skuro 2020-04-25T09:01:25.315300Z

okido

skuro 2020-04-25T09:20:45.316700Z

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?

Oliver George 2020-04-25T09:30:33.317500Z

What operating system? Which simulator?

Oliver George 2020-04-25T09:31:22.318500Z

My experience is that macOS and iOS loads consistently

➕ 1
Oliver George 2020-04-25T09:32:51.320400Z

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

Oliver George 2020-04-25T09:33:11.320900Z

It’s all very young though so surprises are likely

skuro 2020-04-25T09:39:21.321400Z

I'm on Linux / Genymotion Android emulator

Oliver George 2020-04-25T10:01:08.322700Z

I can’t talk to that. Sorry.

skuro 2020-04-25T10:19:51.323400Z

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

👍 1
skuro 2020-04-25T10:20:27.324200Z

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

Oliver George 2020-04-25T10:26:14.324500Z

Glad you sorted it out.

skuro 2020-04-25T11:34:30.324800Z

thanks for your support!

skuro 2020-04-25T12:50:18.325600Z

@admin055 good to know, I missed that

dnolen 2020-04-25T15:05:32.326Z

@skuro glad to know Android is working

skuro 2020-04-25T15:49:21.328Z

@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

dnolen 2020-04-25T15:50:59.328900Z

@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

dotemacs 2020-04-25T16:02:22.331700Z

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.