Fork me on GitHub
#cljsrn
<
2021-04-28
>
dnolen15:04:33

Krell now has support to develop against multiple instances of an app - https://github.com/vouch-opensource/krell#multiple-app-instance-development

👏 8
2
💥 2
cljs 2
dnolen15:04:44

i.e. you can run the app N times and run N REPLs

dnolen15:04:17

the primary use case is testing apps that requires multiple parties - i.e. chat/messaging etc.

dnolen15:04:58

it's actually not a case that React Native supports well

dnolen15:04:03

because Metro reloads everyone

dnolen15:04:18

and XCode disconnects from the previous build when you rebuild

dnolen15:04:54

but this works around these limitations to offer a model that I believe works reasonably well

dnolen16:04:53

i.e. a primary REPL that is the reloader, and a secondary REPL that does not reload

Michaël Salihi16:04:47

Brillant! Very nice @dnolen! Thx 👍

hkjels16:04:50

I get this error when I try to start clojure with the latest version of krell

Error building classpath. 
java.lang.NullPointerException
	at clojure.tools.deps.alpha.util.dir$canonicalize.invokeStatic(dir.clj:30)
	at clojure.tools.deps.alpha.util.dir$canonicalize.invoke(dir.clj:25)
	at clojure.tools.deps.alpha.extensions.deps$eval1390$fn__1392.invoke(deps.clj:27)
	at clojure.lang.MultiFn.invoke(MultiFn.java:244)
	at clojure.tools.deps.alpha$expand_deps$children_task__790$fn__792$fn__793.invoke(alpha.clj:403)
	at clojure.tools.deps.alpha.util.concurrent$submit_task$task__505.invoke(concurrent.clj:34)
	at clojure.lang.AFn.call(AFn.java:18)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

hkjels16:04:56

I have tripple checked the sha and if I just remove the krell dependency, it boots just fine. Any ideas @dnolen?

hkjels16:04:15

it actually happens on every version now, I must have messed up my environment some how

dnolen17:04:31

@hkjels delete .cpcache

dnolen17:04:39

if that doesn't work

dnolen17:04:44

delete ~/.gitlibs

dnolen17:04:43

tools-deps problem unrelated to Krell

hkjels18:04:18

Deleting ~/.gitlibs did the trick. Thanks!