Skip to content

Unable to resolve symbol key-vec in lein reagent template #123

Description

@kasbah

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:

lein test

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions