Skip to content

Reading fails on alias-qualified keywords #341

Description

@edenworky

Minimal reproduction:

Given a notebook ns starting like this:

^:kindly/servable
(ns example
  (:require
    [scicloj.clay.v2.main]
    [clojure.string :as str]))

If we add and try to read and render:

::str/join

Clay fails with a truncated error from tools.reader.

Note, this happens even if Clay should never try to render the expression, such as in appending instead of ::str/join:

^:kindly/hide-code {::str/join 1}

I have on my fork (https://github.com/edenworky/clay) a working fix for clay.reader/read to iteratively take into consideration the current ns/aliases, but I'm not sure this is the best approach, and in any case, I moved to clerk for now. Posting this here in any case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions