datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
xceno 2020-10-06T13:42:46.273100Z

Not sure if I run into the same bug as @onetom reported above, or if I don't understand the docs correctly. I've added both, con.datomic/dev-local and com.datomic/client-cloudto my project. Now whenever I try to call (d/client <some-cfg>) , it crashes with: > Syntax error (FileNotFoundException) compiling at (datomic/client/impl/shared.clj:1:1). > Could not locate cognitect/hmac_authn__init.class, cognitect/hmac_authn.clj or cognitect/hmac_authn.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name If I only add one or the other dependency it works fine. So I can either connect locally or to datomic-cloud, but as I understand we should be able to add both as a dependency at the same time and then either construct one or the other client, or call divert(?) I'm still on clj 1.10.1.536 You can replicate the behaviour by simply checking out the ion-starter project and adding dev-local as a dependency. Leave everything else unchanged and try to create a client.

xceno 2020-10-06T13:50:11.274Z

Oh, I just found this post in the forums: https://forum.datomic.com/t/dev-and-test-locally-with-dev-local/1518/9 So, nevermind. I'll try the latest clj then

alexmiller 2020-10-06T13:52:28.275500Z

if you do upgrade to latest stable clj (1.10.1.697) you are likely to run into the issue that @onetom was seeing (these issues are related) so you might actually need to go to the prerelease (1.10.1.708) or wait for that to be promoted to stable, should be soon

xceno 2020-10-06T14:01:49.277400Z

Nice thanks! I was just going to ask if I can install the pre-release via homebrew for linux, but I can also use that script for now

alexmiller 2020-10-06T14:02:42.278100Z

prereleases are not in brew (or they'd be releases) but you can just follow the instructions at https://clojure.org/guides/getting_started but with that version number on linux

1👍
alexmiller 2020-10-06T14:10:39.280Z

just fyi, if you are posting large text, using a snippet (the lightning bolt in the bottom left of the edit pane) will fold it and syntax highlight it

onetom 2020-10-06T14:29:31.281800Z

I'm posting from mobile and that lightning icon brings some search dialog up, but thx for the feedback; I will try to figure this out

onetom 2020-10-06T14:30:23.283200Z

btw, what's the license of the Datomic CLI? I haven't found any mention of that in the ZIP file

onetom 2020-10-06T14:40:42.283500Z

Nix package for the Datomic Cloud CLI Tools

onetom 2020-10-06T14:42:11.283900Z

Adaptation of the official Clojure CLI Nix package to the latest version: 1.10.1.708

alexmiller 2020-10-06T14:58:49.284200Z

you should ask in main channel, don't know

zhuxun2 2020-10-06T21:47:06.284500Z

Is there a way to subscribe to entity changes in Datomic?

2020-10-06T21:48:24.284900Z

Would the tx-report-queue work ^^: https://docs.datomic.com/on-prem/clojure/index.html#datomic.api/tx-report-queue ?

zhuxun2 2020-10-06T21:54:19.285200Z

@lennart.buit Looks like it's what I'm looking for, thanks!

schmee 2020-10-06T22:18:49.285400Z

heads up: tx-report-queue does not exist in Datomic Cloud