Skip to content

Error reporter searches for a source file even with read-string #647

@shantanu-sardesai

Description

@shantanu-sardesai

There is a small bug in jank's error code snippet reporter wherein it tries to search for a source file even when we are using read-string to read in some arbitrary source code from a string.

user=> (read-string "#cpp")
─ parse/invalid-reader-tag-value ───────────────────────────────────────────────────────────────────
error: The string literal after this '#cpp' is missing.

─────┬──────────────────────────────────────────────────────────────────────────────────────────────
     │ /var/folders/xd/9v1dcg0d46l7d19830vq0lhc0000gn/T/jank-repl-5Wf2yg
─────┼──────────────────────────────────────────────────────────────────────────────────────────────
  1  │ (read-string "#cpp")
     │ ^^^^^^^^^^^^^^^^^^^^ Used here.
─────┴──────────────────────────────────────────────────────────────────────────────────────────────
╭ nil ─────────────────────────────────────────────────────────────────────────────────────────────╮
│Unable to map file: Unable to find module 'user'.                                                 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions