Fork me on GitHub
#nbb
<
2023-05-30
>
jaide19:05:20

Can't tell if clojure.alpha.spec (spec2) is not working in nbb due to invalid config on my part, or if that library is not compatible?

jaide19:05:20

----- Error --------------------------------------
Message:  Unable to resolve classname: clojure.alpha.spec.protocols.Spec
Location: /Users/j/projects/clj-spec-example/.nbb/.cache/08fd276a713a558b83d32dab07df7788b3ca2c63/nbb-deps/clojure/alpha/spec.clj:22:3

----- Context ------------------------------------
18:   (:require [clojure.alpha.spec.protocols :as protocols
19:              :refer [conform* unform* explain* gen* with-gen* describe*]]
20:             [clojure.walk :as walk]
21:             [clojure.alpha.spec.gen :as gen])
22:   (:import [clojure.alpha.spec.protocols Spec Schema]))
      ^--- Unable to resolve classname: clojure.alpha.spec.protocols.Spec
23:
24: (alias 'c 'clojure.core)
25: (alias 'sa 'clojure.spec.alpha)
26:
27: (def ^:dynamic *recursion-limit*

----- Stack trace --------------------------------
clojure.alpha.spec - /Users/j/projects/clj-spec-example/.nbb/.cache/08fd276a713a558b83d32dab07df7788b3ca2c63/nbb-deps/clojure/alpha/spec.clj:22:3

Unable to resolve classname: clojure.alpha.spec.protocols.Spec
nbb.edn
{:deps {org.clojure/alpha.spec
          {:git/url "",
           :sha "4cbfa677c4cd66339f18e1c122222c05c69e0d8e"}},
 :paths ["src"]}

jaide19:05:36

Ended up just switching to clj for this, just poking around to learn more about how it works.

borkdude20:05:41

it works in bb, not in nbb at the moment

borkdude20:05:50

oh spec2 doesn't

jaide20:05:13

Good to know. Thanks!

borkdude20:05:36

perhaps spec2 works in bb, but I doubt it, haven't even tried