This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-10
Channels
- # aleph (1)
- # beginners (4)
- # biff (7)
- # calva (7)
- # cider (8)
- # clara (17)
- # clerk (19)
- # clj-kondo (30)
- # clojure (12)
- # clojure-austin (1)
- # clojure-europe (12)
- # clojure-losangeles (1)
- # clojure-norway (21)
- # clojurescript (2)
- # datalevin (1)
- # datomic (24)
- # duct (3)
- # fulcro (8)
- # hyperfiddle (8)
- # lambdaisland (4)
- # membrane (6)
- # missionary (7)
- # off-topic (55)
- # overtone (2)
- # reagent (4)
- # reitit (4)
- # releases (6)
- # shadow-cljs (80)
Hi! Are there known Clerk issues with defprotocol, defrecord or “bare” namespaces? I’m hitting some errors, putting details in thread.
“bare” namespace: I’m using :paths ["."]
and a Clojure file in the same directory as the deps.edn
file.
This is the error I’m getting:
:clojure.error/cause
"No implementation of method: :sample of protocol: #'second-dice/Sample found for class: second_dice.Dice"
Full namespace, version that gives me the error: https://github.com/teodorlu/play.teod.eu/tree/fe70f7ed3fc6f997669b5356925f220d0c6e5038/how-much-is-that-second-dice-worth/second_dice.clj
I’m unable to produce the same error by evaulating forms from the top to the bottom.
A call to clerk/clear-cache!
and a following call to clerk/show!
seems to fix the error.
I tried to isolate the error, assuming it was just the defprotocol
or the defrecord
. But I haven’t been say exactly what is causing the error.
It seems to happen sometimes when I’m implementing my protocol for a new record.
I currently have the REPL state that gave me the error open, so I could possibly provide more data. (not sure what kind of data is relevant)
not surprised this isn’t working well yet, we haven’t spent a lot of time on this and it does need quite a bit of special handling
I would appreciate section in the book (or a doc somewhere else) on current limitations and (potential) workarounds a lot.
added a comment to the issue:
https://github.com/nextjournal/clerk/issues/497#issuecomment-1987222271
I included the whole output from *cider-error*
, which I didn’t paste into this thread (it’s big).
Is this related https://github.com/nextjournal/clerk/issues/455 ? I also ran into a similar issue recently with an error like "No implementation of method: of protocol"