Fork me on GitHub
#datomic
<
2020-10-06
>
xceno13:10:46

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.

xceno13:10:11

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

Alex Miller (Clojure team)13:10:28

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

xceno14:10:49

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

Alex Miller (Clojure team)14:10:42

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

👍 3
Alex Miller (Clojure team)14:10:39

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

onetom14:10:31

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

onetom14:10:23

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

Alex Miller (Clojure team)14:10:49

you should ask in main channel, don't know

onetom14:10:42

Nix package for the Datomic Cloud CLI Tools

onetom14:10:11

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

zhuxun221:10:06

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

zhuxun221:10:19

@UDF11HLKC Looks like it's what I'm looking for, thanks!

schmee22:10:49

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

mruzekw01:10:46

Is there an alternative for this? ^