Fork me on GitHub
#om
<
2017-08-02
>
dehli00:08:39

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

dehli00:08:39

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

wilkerlucio00:08:49

@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

wilkerlucio00:08:18

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

wilkerlucio00:08:42

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

wilkerlucio00:08:54

then you should clean your project build and start over

wilkerlucio00:08:10

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

dehli00:08:26

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

dehli00:08:41

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

dehli00:08:00

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

wilkerlucio00:08:26

it is installing on your local maven repository

wilkerlucio00:08:34

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

dehli00:08:02

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

wilkerlucio00:08:50

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

dehli00:08:21

well i really just need to test out the cljs stuff

wilkerlucio00:08:06

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

wilkerlucio00:08:28

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

dehli00:08:52

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

dehli00:08:10

to get around the create react class warning

wilkerlucio00:08:57

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

dehli00:08:30

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

wilkerlucio00:08:28

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)

dehli00:08:05

would lein checkouts fix that?

wilkerlucio00:08:22

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

wilkerlucio00:08:28

but there is an easier option

wilkerlucio00:08:43

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

wilkerlucio00:08:13

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

dehli00:08:30

ooooh, that's very smart!

dehli00:08:38

thanks! i'll do that