BetterThanTomorrow / calva

Clojure & ClojureScript Interactive Programming for VS Code
https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.calva
Other
1.61k stars 213 forks source link

notebooks don't handle reader macros well #2134

Open Cyrik opened 1 year ago

Cyrik commented 1 year ago

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.

PEZ commented 1 year ago

Slightly related issue: