calva icon indicating copy to clipboard operation
calva copied to clipboard

notebooks don't handle reader macros well

Open Cyrik opened this issue 2 years ago • 1 comments

This is mostly a problem around clj-kondo ignore statements but also happens with other reader macros.

#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(def a 1)

Produces two cells, where the first only contains #_.

This is probably happening because the LispTokenCursor calva uses to walk the file ignores commented s-expressions.

Cyrik avatar Mar 29 '23 10:03 Cyrik

Slightly related issue:

  • #2100

PEZ avatar Mar 29 '23 10:03 PEZ