Fork me on GitHub
#datomic
<
2018-03-17
>
fdserr04:03:31

Hi there. figwheel build blows up when I add a dep to Datomic:

Figwheel: Cutting some fruit, just a sec ...
Exception in thread "main" java.lang.ExceptionInInitializerError
        at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.NoSuchMethodError: com.google.common.base.Precondition
s.checkState(ZLjava/lang/String;Ljava/lang/Object;)V, compiling:(
j:100:1)
... (much more crap, will provide it for free if needed)
Tried to downgrade with no avail. Thanks in advance if you can help.

fdserr04:03:03

How to reproduce:

$ lein new figwheel dat-no-like-fig
$ cd dat-no-like-fig
$ lein figwheel
==>>sweetness
Edit project.clj
...
  :dependencies [[org.clojure/clojure "1.9.0"]
                 [org.clojure/clojurescript "1.9.946"]
                 [org.clojure/core.async  "0.4.474"]
                 [com.datomic/datomic-free "0.9.5661"]] ; <- added (jar is installed)
...
quit and restart figwheel
bam!
(see above)

souenzzo15:03:27

@fdserr run a lein deps :tree and post here

robert-stuttaford19:03:08

some progress on my bridge project here: https://www.stuttaford.me/2018/03/17/bridge-dev-diary--modelling-access/ of relevance is my experience using Datomic Peer and Client together. may be of interest if you’re using one and considering switching to the Client API for Cloud later

bmabey02:03:36

Thanks for sharing! Your project has some great datomic starter code and is a good modern example. I'll be copying your abstraction over the peer and client libs for an upcoming project. 🙂

amarjeet19:03:14

I had asked a related question earlier. I am facing an issue again. So, I am using pedestal + datomic cloud. My datomic cloud is up and running and I am able to connect my pedestal app when I run the app at my local machine (with socks proxy). Now, I am trying to deploy the pedestal app on aws/heroku and I am getting Connection refused error. What config I am missing?

bmabey02:03:36

Thanks for sharing! Your project has some great datomic starter code and is a good modern example. I'll be copying your abstraction over the peer and client libs for an upcoming project. 🙂