bhauman / bhauman/devcards

defcard-rg without a name causes compilation error

Open
#150 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
1.5k
Forks
106
PR merge metrics
No merged PRs in 30d

Description

Minimal code to reproduce:

```clojure
(defn hello []
[:div "hello"])

(defcard-rg
[hello])

;; [Figwheel:SEVERE] java.lang.ClassCastException: clojure.lang.Cons cannot be cast to clojure.lang.Associative

```

I suspect that the problem is related to `devcards.core/merge-options` and macro expansion.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the minimal Clojure example in the issue and inspect devcards.core/merge-options during macro expansion. Reproduce the ClassCastException for defcard-rg without a name, then verify that the same form compiles without the error after the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.