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
2020-04-17T08:06:20.149800Z

@dnolen Hi, I just tried the Krell/Reagent tutorial and nothing happens after "Searching for devices...". I use Android emulator, the app launch and it display "Waiting for Krell to load files.". Maybe Metro log can help

[Fri Apr 17 2020 10:00:06.583]  BUNDLE  ./index.js 

[Fri Apr 17 2020 10:00:08.154]  LOG      Running "AwesomeProject" with {"rootTag":141}
[Fri Apr 17 2020 10:00:08.159]  LOG      Scan started
[Fri Apr 17 2020 10:00:08.161]  LOG      Service resolved: {"txt":{},"port":5003,"fullName":"192.168.232.2._http._tcp","addresses":["192.168.232.2"],"host":"192.168.232.2","name":"krell.replAwesomeProject goldfish_x86"}
[Fri Apr 17 2020 10:00:08.162]  LOG      Service resolved: {"txt":{},"port":5003,"fullName":"192.168.232.2._http._tcp","addresses":["192.168.232.2"],"host":"192.168.232.2","name":"krell.replAwesomeProject goldfish_x86"}
[Fri Apr 17 2020 10:00:08.163]  LOG      An error ocurred with the server bind failed: EADDRINUSE (Address already in use)

2020-04-17T08:07:08.150100Z

I'll tried on real device later.

2020-04-17T09:00:35.151600Z

FYI Same behavior on Android device. I restart the tutorial at the beginning to check if I miss something.

2020-04-17T09:33:44.152300Z

Nope, always block. Anyone had success with Android ? Emulator/Real devices ?

dnolen 2020-04-17T10:16:56.153300Z

I've tested using Pixel 3, older simulators have issues w/ the mDNS code

dnolen 2020-04-17T10:17:24.153900Z

the REPL stuff is really only about dev so it's not a big deal - not going to include that stuff normally

dnolen 2020-04-17T10:17:41.154200Z

@admin055 ^ what simulator are you using?

dnolen 2020-04-17T10:18:10.154900Z

Also it's important even with a newer simulator for a reasonably fast connect to start the REPL first, then launch the build

dnolen 2020-04-17T10:25:33.156100Z

@admin055 also maybe that port is already taken? there's not a way to choose that at the moment

2020-04-17T11:24:16.157600Z

@dnolen Thank you for the clarification. The emulator tested was Nexus 5x, I try the Pixel 3 right now.

2020-04-17T11:25:01.158100Z

FYI, the real devices is Xiamo Redmi note 7

2020-04-17T11:27:54.159100Z

Nope, failed with the Pixel 3 emulator too. I'll investigated further later. Thx

dnolen 2020-04-17T12:02:08.159800Z

@admin055 thanks, any feedback here much appreciated - I'm not Android expert and in general my experience so far is that it's a bit trickier to support

2020-04-17T12:38:15.163800Z

@dnolen You're welcome, it's a pleasure to test these new features. Thanks to you. Maybe a track to trying help to debug? The IP address showing in "Service resolved" message must not be pingable, right? Because of the 5003 port forwarding?

dnolen 2020-04-17T12:39:28.164500Z

@admin055 the EADDRINUSE seems to indicate the 5003 is already bound by some other service on your machine - you might want to look into that

dnolen 2020-04-17T12:40:05.165300Z

I could change the code to randomly bind a port range - will look into that later and let you know

dotemacs 2020-04-17T12:43:02.166200Z

Maybe if you run netstat -an | grep 5003 or lsof -i :5003 you can see if that port is taken @admin055. If it is, kill the process that is taking it up…

2020-04-17T12:52:15.168600Z

@dnolen @dotemacs I think we can dismiss this track, the 5003 port is definitly free before the adb forward tcp:5003 tcp:5003 I don't have EADDRINUSE message on first start, only when I manually reload the app.

dnolen 2020-04-17T12:56:28.169300Z

@admin055 ah k, was missing that information - there are other reasons why mDNS might not work

2020-04-17T13:37:15.170100Z

@dnolen Yeah, I will also go in the direction of mDNS. Maybe because my OS is Ubuntu Linux has something to do with it? Normally not, the avahi and Zeronconf services are installed by default.

donavan 2020-04-17T13:58:05.171200Z

Has anyone hit a situation where krell.main gets stuck at “searching for devices…” and KrellRoot’s state is never loaded?

donavan 2020-04-17T14:04:46.171300Z

[Fri Apr 17 2020 15:03:09.140]  LOG      Scan started
[Fri Apr 17 2020 15:03:09.160]  LOG      Service resolved: {"port":5002,"txt":{},"addresses":["127.0.0.1","::1","fe80::1","192.168.10.117","fe80::ce4:2fc2:9893:4314"],"name":"krell.replAwesomeProject iPhone12,1","fullName":"donavan.local._http._tcp.","host":"donavan.local."}
[Fri Apr 17 2020 15:03:09.170]  LOG      An error ocurred with the server Error in bind() function
[Fri Apr 17 2020 15:03:09.180]  LOG      Running "AwesomeProject" with {"rootTag":91,"initialProps":{}}
[Fri Apr 17 2020 15:03:09.950]  WARN     socketDidDisconnect with nil clientDelegate for 0
[Fri Apr 17 2020 15:03:09.191]  LOG      Service resolved: {"port":80,"txt":{},"addresses":["192.168.10.178","fe80::9232:4bff:feba:135f"],"name":"Brother HL-L2350DW series","fullName":"BRW90324BBA135F.local._http._tcp.","host":"BRW90324BBA135F.local."}

donavan 2020-04-17T14:13:33.172100Z

Sorry, @admin055 just pointed out he mentioned this above :face_palm:

👍 1
2020-04-17T14:13:43.172300Z

Yes me. You can read the last exchanges about this on this channel https://clojurians.slack.com/archives/C0E1SN0NM/p1587110780149800

2020-04-17T14:15:09.172700Z

Seems do you run on Iphone, right?

donavan 2020-04-17T14:16:22.172900Z

yeah, but I’m vaguely sure I have something else on 500x

donavan 2020-04-17T14:18:09.173100Z

turns out not… was thinking of 700x I’m on MacOS Catalina and iphone simulator

dnolen 2020-04-17T14:28:40.173700Z

@admin055 I have a coworker who has a similar problem on Android, will see if I can get to the bottom of this

🙌 1
donavan 2020-04-17T14:30:25.174600Z

@dnolen if it helps at all I have the same issue; MacOS, iOS

donavan 2020-04-17T14:30:51.174700Z

sudo lsof -nP -iTCP:5002
Password:
COMMAND     PID    USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
AwesomePr 29399 donavan   34u  IPv4 0xbe4674c95bcce237      0t0  TCP *:5002 (LISTEN)
AwesomePr 29399 donavan   35u  IPv6 0xbe4674c960b5a587      0t0  TCP *:5002 (LISTEN)

donavan 2020-04-17T14:32:27.175100Z

[Fri Apr 17 2020 15:31:19.440]  LOG      Scan started
[Fri Apr 17 2020 15:31:19.441]  LOG      An error ocurred with the server Error in bind() function
[Fri Apr 17 2020 15:31:19.442]  LOG      Running "AwesomeProject" with {"rootTag":11,"initialProps":{}}
[Fri Apr 17 2020 15:31:19.551]  LOG      Service resolved: {"port":5002,"txt":{},"addresses":["127.0.0.1","::1","fe80::1","192.168.10.117","fe80::ce4:2fc2:9893:4314"],"name":"krell.replAwesomeProject iPhone12,1","fullName":"donavan.local._http._tcp.","host":"donavan.local."}
[Fri Apr 17 2020 15:31:19.616]  LOG      Service resolved: {"port":80,"txt":{},"addresses":["192.168.10.178","fe80::9232:4bff:feba:135f"],"name":"Brother HL-L2350DW series","fullName":"BRW90324BBA135F.local._http._tcp.","host":"BRW90324BBA135F.local."}
[Fri Apr 17 2020 15:31:29.240]  WARN     socketDidDisconnect with nil clientDelegate for 0

donavan 2020-04-17T14:34:32.175300Z

Actually it’s not quite the same issue, soz!

donavan 2020-04-17T14:42:27.175500Z

OK I got it working. After pressing ‘r’ in the metro terminal krell.main gave me the option of device and after choosing I have a repl and the app loads in the simulator

dnolen 2020-04-17T15:11:56.175900Z

k great

fabrao 2020-04-17T16:16:23.176700Z

Hello all, can I ask a thing about Krell here?

dotemacs 2020-04-17T16:29:49.177500Z

@fabrao just ask, don’t ask to ask :)

dnolen 2020-04-17T16:38:51.179100Z

@fabrao yep, now that Krell is out out door, I'll be hanging out here keeping a lookout for issues & answering questions

👍 4
fabrao 2020-04-17T17:50:57.180Z

I didn´t understand this

dotemacs 2020-04-17T17:51:49.181200Z

That means, that the line above what you’ve circled, the argument passed to the switch -m should be krell.main.

fabrao 2020-04-17T17:53:02.182200Z

oh, I thought about writing krell.main file, sorry about that

dotemacs 2020-04-17T17:53:36.183Z

Basically what that says is: “just copy and paste what I wrote above”

fabrao 2020-04-17T17:55:20.184200Z

I´d like to try using it because re-natal is too complex if you want to import some external lib, and if I can help about "lookout for issues & answering questions".

fabrao 2020-04-17T17:59:14.186400Z

And I try to use it with #helix , because I want to hire some people from JS React Native, and it works like the original JS React Native and don´t burn his brains out with Clojurescript 🙂

fabrao 2020-04-17T17:59:49.186600Z

using reagent

mfikes 2020-04-17T21:48:06.187900Z

I discovered that, if Krell is stuck waiting to discover devices in and you have a Krell-enabled app running in the iOS simulator, then turning off WiFi can help discovery.