This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-07
Channels
- # adventofcode (269)
- # beginners (100)
- # boot (6)
- # cider (4)
- # cljsrn (4)
- # clojure (161)
- # clojure-android (31)
- # clojure-argentina (2)
- # clojure-brasil (8)
- # clojure-greece (45)
- # clojure-india (2)
- # clojure-madison (2)
- # clojure-russia (17)
- # clojure-spec (4)
- # clojure-sweden (1)
- # clojure-uk (32)
- # clojurescript (93)
- # core-logic (2)
- # cursive (21)
- # data-science (2)
- # datomic (46)
- # defnpodcast (1)
- # duct (5)
- # emacs (21)
- # events (1)
- # fulcro (17)
- # graphql (13)
- # job (1)
- # jobs (2)
- # leiningen (11)
- # lumo (3)
- # off-topic (119)
- # om (4)
- # onyx (2)
- # planck (6)
- # portkey (12)
- # re-frame (5)
- # reagent (3)
- # ring (5)
- # shadow-cljs (27)
- # spacemacs (19)
- # specter (6)
- # unrepl (9)
...returns Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/http/HttpParser$ProxyHandler, compiling:(ring/adapter/jetty.clj:27:9)
@dsnuts can’t you just require the correct version of jetty yourself? or does datomic complain if you do that?
and @zach892 i’d wager most people are not using the datomic client if writing an application in clojure (could be wrong though). most people are using the peer library
You can require [org.eclipse.jetty/jetty-server "9.2.17.v20160517"] as a fix but, then you've got to keep this explicit dependency in sync with the corresponding version of ring 😞
I'm less than confident prospective datomic users would go through the trouble of tracking this problem down to ring.adapter.jetty and find this obscure version of jetty-server as a fix before they decide to give up. In fact, I found a stackoverflow issue related to this very dependency issue and the OP said he just gave up on trying Datomic. I like Cognitect and I like Datomic. I fear for Datomic if this is the sort of thing people go through just to try it out. If I can help make it easier for people to adopt Datomic, I will. What can I do to help?
Definately. I am just a happy user of datomic so I can’t speak for the team. Dep resolution is a common problem across many projects imo, I am not sure its an indictment of datomic. That being said, its likely that datomic will be used in projects that use ring so this issue is def good to raise with the team
agreed. btw does bumping to the latest version of ring not work either btw? doubtful, just noticed you are on an old minor version
As for reporting, this is definately a good place, as is the google group. IDK if datomic has a jira board, but clojure does so may be they do too somewhere. email would def work too. Awesome that you are reporting bugs that alot of ppl are going to run into
I emailed support at Cognitect about this. Support Is being handled by Think Relevance so, we'll see if the team catches wind of this issue through the grapevine. fingers crossed
imo i hate letting a library decide what version of a server lib you are going to consume.
@dsnuts one last thing, you could try exluding ring jetty adapter from the datomic-client lib.
And to be clear ring doesn't require any particular server but, if you wan't to use ring out of the box, you're probably using jetty
i wasn’t going to suggest changing your server because thats a big decision for some, but if its not for you then why not? jetty adapter is a bit old anyway
[com.datomic/clj-client "0.8.606" :exclusions [org.eclipse.jetty/jetty-client org.eclipse.jetty/jetty-http org.eclipse.jetty/jetty-util]]]
didn’t work?
im all out of ideas then. curious what the resolution on this is. thanks for bringing it up
Found the proper :exclusions to fix the datomic.client/ring.adapter.jetty issue! [com.datomic/clj-client "0.8.606" :exclusions [org.eclipse.jetty/jetty-http org.eclipse.jetty/jetty-server]]
wins
Help wanted here 🙂 https://stackoverflow.com/questions/47693495/datomic-on-a-peer-does-connection-db-read-your-writes-after-connection-trans
the new datomic developers forum (https://forum.datomic.com/) has replaced the datomic google group (cc kenbier dsnuts)
@kenbier if you’d post it on the new forum at http://forum.datomic.com that’d be a good option - can get additional feedback from others there as well
@dsnuts and @kenbier thanks for chasing down the deps issue. We’ll fix this in an upcoming release of client.
@daemianmack @jaret Noted. Thanks guys!
this ?e
has many ?a ?v
with different ?tx
....dosent make much sense ask for tx on pull
but you can do
(map (apply (partial into {})) (d/q '[:find (pull ?e [*]) (pull ?tx [*]) :where [?e :user/name _ ?tx]] (d/db conn))
or something like
I’m reading http://www.learndatalogtoday.org/chapter/3 to learn datalog and im confused by the last query down the bottom under the heading “relations”
[:find ?title ?box-office
:in $ ?director [[?title ?box-office]]
:where
[?p :person/name ?director]
[?m :movie/director ?p]
[?m :movie/title ?title]]
Is [[?title ?box-office]]
input?
And why isn’t ?box-office
in the where clause?
I almost looks like they’re destructuring a vector within a vector but It wouldn’t make sense parsing in your expected output