Clojurians
#cljsrn
<
2015-11-18
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

tiensonqin00:11:30

@johanatan thanks! Will try this!

johanatan01:11:42

@mfikes: does it make sense to add that script to natal as a pull request?

dvcrn01:11:14

@johanatan: apologies for the misunderstanding but isn't that doing the same thing as natal repl?

dvcrn01:11:03

@mfikes: got my hands on the video, but not sure if it belongs on the cljsrn website. It's more theory and only goes into om examples in the end - https://www.youtube.com/watch?v=oJ8t8Hc9XaE

johanatan01:11:18

@dvcrn no, it's enabling live reloading

johanatan01:11:37

On file change

dvcrn01:11:04

but if you have a ambly repl open it's also reloading your files when you change them

mfikes01:11:37

@johanatan: Some of that stuff is in Natal (https://github.com/dmotz/natal/blob/0.1.6/natal.coffee#L428-L437). I suppose you are interested in whether Dan can figure out a way to tail the logfile for you somewhere appropriate within Natal.

mfikes01:11:42

@dvcrn: Awesome :simple_smile: It is in the Talks & Videos section of http://cljsrn.org now

johanatan02:11:31

@dvcrn: I hadn't noticed that before but I will try it now

johanatan02:11:56

@dvcrn: ok, just tried it and it worked

dvcrn02:11:03

:simple_smile:

johanatan02:11:36

But, like @mfikes mentioned, I like the integrated tail

johanatan02:11:09

@dmotz: can you find a way to integrate the tail into REPL output? I'd like to see something like: ^

dmotz02:11:37

yeah i’m looking into a solution for integrated compiler feedback

johanatan02:11:22

great! thx! if you need a hand, just point me to the right insertion point

johanatan02:11:48

btw, how do projects that have already been generated take updates from the natal/ambly upstream?

dmotz02:11:00

there’s no real solution for that now

dmotz02:11:20

I think for new Ambly releases you could update the version in the Podfile

dmotz02:11:25

@dvcrn: maybe something like this, but not restricted to the js/React namespace? https://github.com/dmotz/natal-shell/blob/master/src/natal_shell/components.clj#L7

dvcrn02:11:58

yep something like that

dmotz02:11:23

cool, i’ll keep that in mind

dvcrn02:11:44

Very excited to see where clojurescript is going with native

dmotz02:11:00

absolutely

johanatan02:11:15

@dmotz: when do you think you will have integrated tail/compiler output to natal?

tiensonqin03:11:10

@johanatan: {:source {:isStatic true :uri "logo"}} not work for me, read the RN source code, I find a ugly way to work around the problem: 1. put require('./img/logo.png'); in the index.ios.js 2. `(this-as this [image {:source (.require this "issues/img/logo.png") :style (:thumbnail styles)}])`

johanatan03:11:33

You just need to embed the image in your bundle

johanatan03:11:44

Then you can refer to it as "logo"

johanatan03:11:04

[May have to create an imageset (which is good practice anyway)]

tiensonqin03:11:20

I thought that we don't need put images to ios imageset as v0.14.0 unified the way for both ios and android

tiensonqin03:11:04

@johanatan: I will try your way, still thanks a lot!

johanatan05:11:52

And the unified way didn't work?

johanatan05:11:31

Did you put your images in the part of the file system that React is privy to? I'd imagine that it won't be looking in the ClojureScript dirs

johanatan05:11:51

Perhaps native/ (root of both iOS and Android native folders) would be the best bet.

jwinter15:11:24

having a little trouble with natal launch failing to launch with an xcodebuild error and wondering if I'm doing something wrong

mfikes16:11:35

@jwinter: error says timeout waiting for simulator to boot. Try natal xcode and seeing if you can launch simulator from the IDE (press the play button)

jwinter16:11:04

so running from XCode does work

jwinter16:11:11

trying to figure out what the difference is

mfikes16:11:49

@jwinter: IIRC there is a natal command to list the simulators.

mfikes16:11:00

Also maybe just try again now. :)

jwinter16:11:50

indeed. natal listdevices does show simulators and I do see 23 iPhone 6s Plus (9.1) in the results

jwinter16:11:32

I've tried a few times, just kinda wondering how to debug what the difference b/t natal launch and XCode/Play-button could be

jwinter16:11:00

not a big deal since I do have a way to run and reload react-native cljs

mfikes16:11:19

@jwinter: maybe have a peek at what Natal is trying and run it by hand to see if more info pops out. (Natal is simple.)

jwinter16:11:53

will do, thx

johanatan19:11:38

@jwinter: this means that your actual Obj-C test failed. Most likely you removed the string that it is looking for.

johanatan19:11:03

@jwinter: I just removed the test entirely (or made it return true) for my purposes.

johanatan23:11:03

Has anyone successfully used :optimizations :simple or :optimizations :advanced? I think I'm going to need at least one or the other in order for :closure-defines to work.