This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # asami (5)
- # babashka (38)
- # beginners (116)
- # calva (65)
- # chlorine-clover (4)
- # cider (8)
- # cljfx (6)
- # cljsrn (7)
- # clojure (18)
- # clojure-australia (1)
- # clojure-europe (49)
- # clojure-spec (6)
- # clojure-uk (4)
- # clojurescript (3)
- # clojureverse-ops (13)
- # core-async (2)
- # cryogen (1)
- # cursive (9)
- # datahike (32)
- # fulcro (3)
- # gratitude (17)
- # malli (4)
- # music (3)
- # nrepl (8)
- # off-topic (14)
- # releases (2)
- # rewrite-clj (3)
- # shadow-cljs (4)
- # vrac (1)
- # xtdb (4)
@goomba There are quite a few people who built prototypes with it, but a production ready version will become available after our 1.0 release. What are you specifically interested in?
I'm very interested in helping w/the development of the production version! I'm having some trouble getting the branch to run locally so I was going to ask if anyone has a verified working build configuration so I have a place to get started
I'm getting some strange compilation errors and I'm not sure if it's from figwheel, emacs, or datahike, but I figure starting with a known working setup is probably the best way to go
Hey @goomba! Super cool that you are interested in helping us move it forward. I did most of the porting work to Cljs and spend most of my time in Clojurescript tooling etc. So perhaps I can help. What kind of error are you getting?
One thing that jumps out at me is that you mention figwheel. We are using shadow-cljs for the build tool. Not sure if this is anything but just thought it’s worth noting before we jump in.
@grounded_sage Yeah! It works out great for me. My brief survey of the landscape indicates that datahike has the closest "datalog running on indexedDB" that I've been able to find, so helping out here would save me a ton of time! I can't imagine figwheel/shadow-cljs would make a difference, but like I said I'll start from the known working config first.
@grounded_sage do you have any idea how important these dependencies are to running the cljs branch? https://github.com/replikativ/datahike/blob/206-cljs-support/deps.edn#L7-L14
Yes these were all done for the cljs branch. I think some of these changes have since made it into releases but I will have to check.
Yea it's very close there is just a bit of work to realign it with the main branch and there is some changes happening in Konserve which will have to be brought in as well.
I think my problem is that my workflow is usually deps/figwheel/CIDER, and at least one of those components probably isn't happy with the current build. You're working in VSCode/Calva + shadow + lein, right?
figwheel/shadow-cljs are different. I think figwheel uses cljs.build under the hood if I remember correctly and shadow-cljs does different things. As far as I am aware they are not that compatible in some builds last I checked.
I was mostly doing
shadow-cljs watch browser-test . Or running the shadow-cljs build from Calva with the browser-repl.
I think the issue with the different build types is that shadow has the
shadow-cljs.edn file where you specify how the build is working. I am less familiar with tooling on the other side as shadow provides so much convenience and it more commonly used within the community
@goomba It takes a bit of getting used to if you're more familiar with figwheel, but I've found shadow-cljs much nicer to work with once you get the hang of it. There are lots of advantages.
Awesome. Hopefully everything is working smoothly now. Feel free to ping me if you have any further troubles. I will be away on vacation soon but will be back in 2 weeks.
Ok, just to double check, then -- the procedure is:
1. clone the repo and checkout the 206-cljs branch
shadow-cljs watch browser-test
3. connect from Calva
4. go through the tutorial
That's how it's expected to work?
And if that doesn't work then there's probably something in my environment that needs to be fixed?
Not yet. I need to verify my shadow setup is working independently first, will attempt again Monday