cljs-dev

lilactown 2024-05-14T15:48:46.054629Z

I have another bug report for an issue I found awhile ago and finally got around to recreating with vanilla ClojureScript (originally found using shadow-cljs).

(ns macro-repl-bug
  #?(:cljs (:require-macros [macro-repl-bug])))


(defn foo
  []
  :foo)


#?(:clj
   (defmacro bar
     []
     :bar))
Including this namespace in :preloads doesn't make the macro macro-repl-bug/bar available. Requiring it explicitly from a namespace or REPL does make the macro available. Full reproduction + details here: https://github.com/lilactown/macro-repl-bug It seems to be an issue specifically with single-part namespaces. @thheller added some details to the original issue I opened with #shadow-cljs that points to the specific lines of code in the cljs analyzer: https://github.com/thheller/shadow-cljs/issues/1167#issuecomment-1859071097

dnolen 2024-05-14T20:35:10.906149Z

@lilactown thanks for the report - https://clojure.atlassian.net/browse/CLJS-3413

❤️ 1