Uploaded image for project: 'Clojure'
  1. CLJ-897

deftype error message is misleading not useful

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: Release 1.3
    • Fix versions: Release 1.5
    • Labels:
      None
    • Environment:

      OS X

    • Approval:
      Ok
    • Patch:
      Code

      Description

      If you forget to include the argument vector for deftype, i.e.

      (deftype second-request-handler
      HttpServer.RequestHandler
      (canRespond [this request] true)
      (getResponse [this request] nil))

      which should be...

      (deftype second-request-handler []
      HttpServer.RequestHandler
      (canRespond [this request] true)
      (getResponse [this request] nil))

      I get the error message..

      Don't know how to create ISeq from: clojure.lang.Symbol (main.clj:1)

      When in fact the error is coming from (second-request-handler.clj:3). Can this error message be improved and give the actually location of the error?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: