om

Please ask the channel first, not @dnolen directly!
dehli 2017-08-02T00:23:39.798389Z

I'm still having difficulties running the examples 🙂 I'm sure it's something silly on my part

dehli 2017-08-02T00:24:39.812092Z

I've run lein install, lein cljsbuild auto, but when I open an index.html file it seems like the files its expecting aren't there

wilkerlucio 2017-08-02T00:26:49.841487Z

@dehli when you do the lein install, check if there aren't any warnings like Warning: skipped duplicate file: deps.cljs, if there are, delete the target folder and try again

wilkerlucio 2017-08-02T00:27:18.848136Z

after you finish, it should say which version was instaled, if you are on master will be like ...om-1.0.0-beta2-SNAPSHOT.jar

wilkerlucio 2017-08-02T00:27:42.853806Z

so then on your project deps, use [org.omcljs/om "1.0.0-beta2-SNAPSHOT" :scope "provided"]

wilkerlucio 2017-08-02T00:27:54.856560Z

then you should clean your project build and start over

wilkerlucio 2017-08-02T00:28:10.860207Z

I know, a lot of stuff, but then you should have the dev version working 🙂

dehli 2017-08-02T00:28:26.863962Z

okay, so i'm seeing the 1.0.0-beta2-SNAPSHOT

dehli 2017-08-02T00:28:41.867486Z

then if I reference that version in my own project, it'll be my own local version?

dehli 2017-08-02T00:29:00.872046Z

b/c it seems like it's creating it in the /om folder itself

wilkerlucio 2017-08-02T00:29:26.878289Z

it is installing on your local maven repository

wilkerlucio 2017-08-02T00:29:34.880233Z

so you should jsut be able to use it from that version

dehli 2017-08-02T00:30:02.886492Z

ahh, that's neat! and it's for cljs & clj?

wilkerlucio 2017-08-02T00:30:09.888273Z

👍

wilkerlucio 2017-08-02T00:30:50.897979Z

for clj I recommend checking lein checkouts, they are more convenient and work great for clj

dehli 2017-08-02T00:31:21.905159Z

well i really just need to test out the cljs stuff

wilkerlucio 2017-08-02T00:31:35.908103Z

lein checkouts: https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#checkout-dependencies (edited)

wilkerlucio 2017-08-02T00:32:06.915055Z

sure, just go with the install and it should be good

wilkerlucio 2017-08-02T00:32:28.920309Z

what are you trying to archive? use the om dev version, or make some changes on it?

dehli 2017-08-02T00:32:52.925539Z

ya, i'm trying to make some changes. i'm trying to see if we can get js class interop

dehli 2017-08-02T00:33:10.929459Z

to get around the create react class warning

wilkerlucio 2017-08-02T00:33:57.939739Z

ah, if you want to check, I sent a PR for that: https://github.com/omcljs/om/pull/883

dehli 2017-08-02T00:34:30.947099Z

ahh, nice! 😄 i'm going to see if we can do it w/o pulling in that library

dehli 2017-08-02T00:35:12.956515Z

https://github.com/clojure/clojurescript/wiki/Working-with-Javascript-classes i was reading this and it seems like it might be possible

wilkerlucio 2017-08-02T00:35:28.960282Z

anyway, if you want to keep a fast iteration cycle, I recommend a different approach, because doing the lein install is really bad for that (after every change you would have to re-install and re-start the build for your project)

dehli 2017-08-02T00:36:05.968885Z

would lein checkouts fix that?

wilkerlucio 2017-08-02T00:36:22.972568Z

maybe, but I personally was never able to make it work for cljs, but you might 🙂

wilkerlucio 2017-08-02T00:36:28.974006Z

but there is an easier option

wilkerlucio 2017-08-02T00:36:43.977251Z

you can just copy the namespace you want to change on your source path (following the correct namespaces)

wilkerlucio 2017-08-02T00:37:13.983553Z

then the namespaces you have locally will have priority over the ones installed, this way you can iterate as if was just part of your code

dehli 2017-08-02T00:37:30.987091Z

ooooh, that's very smart!

dehli 2017-08-02T00:37:38.988843Z

thanks! i'll do that