nbb

2023-05-30T19:07:20.035759Z

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?

2023-05-30T19:08:20.185619Z

----- 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"]}

2023-05-30T19:42:36.872369Z

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

borkdude 2023-05-30T20:21:41.032579Z

it works in bb, not in nbb at the moment

borkdude 2023-05-30T20:21:50.988279Z

oh spec2 doesn't

2023-05-30T20:22:13.159309Z

Good to know. Thanks!

borkdude 2023-05-30T20:22:36.454409Z

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