This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-12
Channels
- # announcements (2)
- # bangalore-clj (4)
- # beginners (97)
- # calva (57)
- # cider (24)
- # clj-kondo (1)
- # cljdoc (4)
- # cljs-dev (8)
- # cljsrn (6)
- # clojure (27)
- # clojure-berlin (7)
- # clojure-dev (95)
- # clojure-europe (16)
- # clojure-italy (15)
- # clojure-losangeles (9)
- # clojure-nl (8)
- # clojure-spec (10)
- # clojure-uk (29)
- # clojurescript (25)
- # clojutre (2)
- # clr (6)
- # cursive (33)
- # datomic (20)
- # dirac (1)
- # duct (9)
- # fulcro (2)
- # graalvm (18)
- # jobs (5)
- # jobs-discuss (19)
- # nrepl (4)
- # nyc (1)
- # off-topic (18)
- # pathom (15)
- # re-frame (22)
- # reagent (4)
- # reitit (1)
- # rewrite-clj (9)
- # spacemacs (2)
- # xtdb (12)
Did anything change from version 19.07-1.3 to 19.09-1.4 relating to predicates in queries? This used to work for me but now is throwing a n error:
;;in where clause
'[(t/>= from t1)]
'[(t/<= to t2 )]
;;=> results in
Execution error (IllegalArgumentException) at crux.query/validate-existing-vars (query.clj:550).
Clause refers to unknown variable: t/>= {:pred {:pred-fn t/>=, :args [from t1]}}
Hey, yeah, if the above used to work that was by accident. It needs to be a fully qualified namespace or inside clojure.core, and this is kind of by design as otherwise you need to know which ns is executing (or even worse, defining) the query
terribly sorry that I missed this message (not used to thread I guess). Might be my VPN/download though (behind company firewall). Will try again from home.
cat project.clj
(defproject crux-play "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:license {:name "Eclipse Public License"
:url ""}
:dependencies [[org.clojure/clojure "1.8.0"]
[juxt/crux-core "19.09-1.4.0-alpha"]
[juxt/crux-jdbc "19.09-1.4.0-alpha"]
]
; :repositories {"local" ~(str (.toURI (java.io.File. "/Users/xuwang/.m2/repository")))}
; :local-repo "/Users/xuwang/.m2/repository"
:main ^:skip-aot crux-play.core
:target-path "target/%s"
:profiles {:uberjar {:aot :all}})
https://clojurians.slack.com/archives/CG3AM2F7V/p1568300694094600 ok I think I found the discussion related to this and some info on how to use fns now here: https://github.com/juxt/crux/issues/121