Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternation for missing element doesn't display correctly #106

Open
bhb opened this issue Jun 25, 2018 · 1 comment
Open

Alternation for missing element doesn't display correctly #106

bhb opened this issue Jun 25, 2018 · 1 comment
Labels
blocked Blocked on spec bug bug

Comments

@bhb
Copy link
Owner

bhb commented Jun 25, 2018

Repro:

(require '[expound.alpha :as expound])
(require '[clojure.spec.alpha :as s])
(set! s/*explain-out* expound/printer)
(defn hello "hello world")

Actual:

-- Syntax error -------------------

  (hello "hello world")

should have additional elements. The next element is named `:args` and satisfies

  (clojure.spec.alpha/alt
   :arity-1
   :clojure.core.specs.alpha/args+body
   :arity-n
   (clojure.spec.alpha/cat
    :bodies
    (clojure.spec.alpha/+
     (clojure.spec.alpha/spec :clojure.core.specs.alpha/args+body))
    :attr
(clojure.spec.alpha/? map?)))

Expected:

The inner alt should be displayed as a series of or clauses

@bhb bhb added the bug label Jun 25, 2018
@bhb
Copy link
Owner Author

bhb commented Jun 25, 2018

This appears to be an issue with spec https://dev.clojure.org/jira/browse/CLJ-2364

@bhb bhb added the blocked Blocked on spec bug label Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked on spec bug bug
Projects
None yet
Development

No branches or pull requests

1 participant