I am able to reliably reproduce the error when adding konserve as dependency to a lein reagent project:
Syntax error compiling at (konserve/filestore.clj:585:25).
Unable to resolve symbol: key-vec in this context
Method 1
Generate an example project from template
lein new reagent example +test
Add the konserve dependency and create a new test file importing it:
diff --git a/project.clj b/project.clj
index 44cb038..a9b2db9 100644
--- a/project.clj
+++ b/project.clj
@@ -18,6 +18,7 @@
:scope "provided"]
[metosin/reitit "0.5.18"]
[pez/clerk "1.0.0"]
+ [io.replikativ/konserve "0.7.317"]
[venantius/accountant "0.2.5"
:exclusions [org.clojure/tools.reader]]]
diff --git a/test/example/test.clj b/test/example/test.clj
new file mode 100644
index 0000000..04361a9
--- /dev/null
+++ b/test/example/test.clj
@@ -0,0 +1,3 @@
+(ns example.test
+ (:require [konserve.filestore :refer [connect-fs-store]]
+ [konserve.core :as k]))
Run tests:
Method 2
Alternatively you can grab the repo I made:
git clone https://github.com/kasbah/konserve-key-vec-repro
cd konserve-key-vec-repro
lein test
Additional info
$ clojure --version
Clojure CLI version 1.12.0.1479
$ lein --version
Leiningen 2.11.2 on Java 11.0.25 OpenJDK 64-Bit Server VM
I am able to reliably reproduce the error when adding konserve as dependency to a lein reagent project:
Method 1
Generate an example project from template
Add the konserve dependency and create a new test file importing it:
Run tests:
Method 2
Alternatively you can grab the repo I made:
Additional info