ClojureScript

defining zero-arity protocol method produces incomprehensible error message

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Clojurescript 0.0-1913

Description

In Clojure:
> (defprotocol P (f []))
IllegalArgumentException Protocol fn: f must take at least on arg [...]

In ClojureScript
> (defprotocol P (f []))
[ 100 lines of incomprehensible stack traces ]

Would be nice if it gave a better error message.

  1. cljs-622-20131104.diff
    04/Nov/13 9:21 AM
    2 kB
    Travis Thieman
  2. protocol-warning-20131017.diff
    17/Oct/13 11:02 AM
    1 kB
    Travis Thieman
  3. protocol-warning-20131017-2.diff
    17/Oct/13 3:59 PM
    2 kB
    Travis Thieman
  4. protocol-warning-20131018.diff
    18/Oct/13 10:05 AM
    1 kB
    Travis Thieman

Activity

Travis Thieman made changes -
Field Original Value New Value
Attachment protocol-warning-20131017.diff [ 12332 ]
Travis Thieman made changes -
Attachment protocol-warning-20131017-2.diff [ 12337 ]
Travis Thieman made changes -
Attachment protocol-warning-20131018.diff [ 12338 ]
Travis Thieman made changes -
Attachment cljs-622-20131104.diff [ 12428 ]
David Nolen made changes -
Priority Minor [ 4 ] Major [ 3 ]
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: