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
bhauman 2020-05-24T00:51:02.174Z

@raspasov great

bhauman 2020-05-24T00:51:47.174900Z

@raspasov do you use require to include images/pngs in your application code?

raspasov 2020-05-24T00:58:19.175600Z

@bhauman no… Most of the images I generally load are remote

raspasov 2020-05-24T00:58:27.176Z

But I can give it a try just to confirm

bhauman 2020-05-24T00:59:51.177800Z

yeah I’m not sure that (js/require "./assets/my-image.png") works in cljs file

raspasov 2020-05-24T01:00:31.178300Z

ok let me try…

raspasov 2020-05-24T01:10:58.178700Z

@bhauman as long as I have the line:

// npmDeps["./assets/logo.png"]= require("./assets/logo.png");

raspasov 2020-05-24T01:11:03.179Z

it seems to work

bhauman 2020-05-24T01:11:27.179600Z

thanks! that’s what I thought

bhauman 2020-05-24T01:11:48.180Z

and you mean not commented out

bhauman 2020-05-24T01:12:00.180300Z

that makes sense

raspasov 2020-05-24T01:13:06.180500Z

Yes

raspasov 2020-05-24T01:14:08.180600Z

Just tried that; Doesn’t seem to work : D

raspasov 2020-05-24T01:15:03.181500Z

Adding a line in index.js is really not a problem IMO for images; at least not a problem for me, since I don’t use many of them

pez 2020-05-24T08:17:20.185Z

Hello! I am configuring Calva for use with Krell. Since there are a few places where one could go wrong, I'd like to add a section on the tooling page on the Krell wiki, but it is not publicly editable. How do I go about it? 😃

dotemacs 2020-05-24T08:19:05.185900Z

Ping David Nolen about it

👍 1
pez 2020-05-24T09:54:52.187800Z

Newbie Krell question. When I have both the Android Emulator and the iOS Simulator connected they seem to tale turns hot reloading code changes. Is there a way I can get both to hot reload all changes?

pez 2020-05-24T09:59:52.187900Z

Also the REPL connects and disconnects every other second.

Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}
krell_repl.js:428 Connected to Krell REPL Server
krell_repl.js:413 Closed connection with {port: 5001, address: "192.168.1.205"}

Oliver George 2020-05-24T10:33:12.189800Z

I don’t think David designed Krell REPL to support multiple clients

dnolen 2020-05-24T17:26:43.191600Z

yeah multiple clients not supported and not a priority for the first release

dnolen 2020-05-24T17:28:51.192400Z

@bhauman fwiw getting Figwheel up to Krell's level wouldn't be particularly hard - the js/require stuff is actually pretty straightforward

dnolen 2020-05-24T17:29:22.193300Z

Krell does it with compiler passes and caching into the analysis

bhauman 2020-05-24T17:29:24.193400Z

Yeah I saw the passes code thats what made me think of it

bhauman 2020-05-24T17:30:19.194200Z

@dnolen thanks I’m planning on giving it a shot

1
pez 2020-05-24T21:13:50.197Z

Krell: I fail to display an assets image. Doing (def splash-img (js/require "../assets/pic.png")) and then [rn/image {:source splash-img :style {:width 200 :height 200}}]. I don't know from where the relative path starts, but I've tried about every permutation.

raspasov 2020-05-24T22:49:43.197800Z

@pez probably “./assets/pic.png”

raspasov 2020-05-24T22:50:29.198300Z

Assuming “assets” is in the top-level project directory