This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-04
Channels
- # arachne (108)
- # beginners (16)
- # boot (48)
- # cider (34)
- # cljs-dev (12)
- # clojure (237)
- # clojure-spec (50)
- # clojure-uk (5)
- # clojurescript (8)
- # cursive (1)
- # datascript (2)
- # datomic (6)
- # defnpodcast (1)
- # emacs (1)
- # fulcro (7)
- # hoplon (1)
- # keyboards (1)
- # off-topic (22)
- # re-frame (26)
- # reagent (2)
- # specter (16)
- # unrepl (6)
- # yada (1)
hey all, I'm wondering is there a library for reading and writing to datomic database from cljs?
I could only find datascript, "an in memory datamoic-like data store"
or dataomic-cljs lib that is 0.0.1 alpha 😕
@derpocious It would not surprise me if there was no such thing. You have so many options to get data to/from js, that an universal solution is hard. Which data do you want to show? How to format data? How should the client serialize?
I'm making a cljs lambda service on aws, and from that I want to read data from the datomic database
I'm trying to add https://www.ocpsoft.org/prettytime/nlp/ as a dependency with leiningen.
In my project.clj
I have:
:dependencies [[org.clojure/clojure "1.9.0"]
[http-kit "2.1.18"]
[compojure "1.4.0"]
[ring/ring-defaults "0.1.5"]
[org.clojure/java.jdbc "LATEST"]
[org.postgresql/postgresql "LATEST"]
[org.ocpsoft.prettytime/prettytime-nlp "LATEST"]]
and also
:repositories {"sonartype snapshots" ""}
I ran lein deps
and got:
Retrieving org/ocpsoft/prettytime/prettytime-nlp/4.0.1.Final/prettytime-nlp-4.0.1.Final.pom from central
Retrieving org/ocpsoft/prettytime/prettytime-nlp/4.0.1.Final/prettytime-nlp-4.0.1.Final.jar from central
Could not find artifact org.ocpsoft.prettytime:prettytime-parent:pom:4.0.1-SNAPSHOT in clojars ( )
I tried adding [org.ocpsoft.prettytime/prettytime-parent "LATEST"]
and then I got
Retrieving org/ocpsoft/prettytime/prettytime-parent/4.0.1.Final/prettytime-parent-4.0.1.Final.pom from central
Retrieving org/ocpsoft/ocpsoft-parent/10/ocpsoft-parent-10.pom from central
Could not find artifact org.ocpsoft.prettytime:prettytime-parent:jar:4.0.1.Final in central ( )
Could not find artifact org.ocpsoft.prettytime:prettytime-parent:pom:4.0.1-SNAPSHOT in clojars ( )
What am I doing wrong?prettytime-parent is just a pom, not a jar, so typically you don’t need to add it as a dependency
so why is it looking for the pom snapshot in clojars if it already found it in central?
(in the first error message)
notice it is finding the pom, but you’ve asked it to find the jar. it checks central, but can’t find it, because it doesn’t exist. then it checks clojars and also can’t find it there
there is no reason to add prettytime-parent as a dependency
sorry, I meant that in the first set of messages (before I added prettytime-parent as a dependency), it says that it is able to find prettytime-nlp-4.0.1.Final.pom
and prettytime-nlp-4.0.1.Final.jar
from central, but then it can't find prettytime-parent:pom:4.0.1-SNAPSHOT
in clojars.
I guess what I'm wondering is why is it looking for the SNAPSHOT when it's able to find Final?
Sometimes easier install to local repo manually. Eg. mvn deploy:deploy-file -DgroupId=local.oracle -DartifactId=javafxrt -Dversion=2.2.0 -Dpackaging=jar -Dfile=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/ext/jfxrt.jar -Durl=file:vendor/mvn
Ok, I'm reading the maven deploy docs and just want to make sure I understand.
So I'd download a .jar manually from a mirror like http://jcenter.bintray.com/org/ocpsoft/prettytime/prettytime-nlp/4.0.1.Final/
Then my command would look something like this:
mvn deploy:deploy-file -DgroupId=org.ocpsoft.prettytime -DartifactId=prettytime-nlp -Dversion=4.0.1.Final -Dpackaging=jar -Dfile=~/path/to/where/i/downloaded/the/jar Durl=file:~/.m2
Does that seem about right?