Fork me on GitHub
#datahike
<
2023-05-09
>
timgilbert22:05:19

Hi! I'm trying out datahike from lein, and I'm seeing this error trying to require datahike.api:

#error {
 :cause Unable to resolve symbol: abs in this context
 :via
 [{:type clojure.lang.Compiler$CompilerException
   :message Syntax error compiling at (datahike/query_stats.cljc:33:25).
   :data #:clojure.error{:phase :compile-syntax-check, :line 33, :column 25, :source datahike/query_stats.cljc}
   :at [clojure.lang.Compiler analyze Compiler.java 6808]}
  {:type java.lang.RuntimeException
   :message Unable to resolve symbol: abs in this context
   :at [clojure.lang.Util runtimeException Util.java 221]}]
I'm using [io.replikativ/datahike "0.6.1540"] which is the latest on clojars. Any advice?

timgilbert22:05:33

(I'm on Java / win11 / WSL2, fwiw)

timgilbert22:05:41

I have also tried every previous release back to 0.6.1535 and I see the same behavior

pat00:05:42

i think abs was added to clojure 1.11

👍 2