Uploaded image for project: 'tools.reader'
  1. TRDR-44

The exceptions throw when parsing fails could be much more specific and helpful.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Labels:
    • Environment:

      Both cljs and clojure.
      OS independent.

    • Patch:
      Code and Test

      Description

      The exceptions thrown when edn/clojure code parsing fails are less helpful than they might be:

      • The same message is used in slightly different circumstance. For example "EOF while reading" is used in three slightly different situations in clojure/tools/reader.clj, while "EOF while reading character" is used four times in the same file.
      • The exception messages frequently do not include much of the available context. Which token is bad? Which map contains an odd number of items?
      • The line number where the error occurred is not always returned.

        Attachments

          Activity

            People

            • Assignee:
              bronsa Nicola Mometto
              Reporter:
              alex+import import
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: