This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-18
Channels
- # babashka (12)
- # beginners (35)
- # biff (6)
- # calva (23)
- # cider (7)
- # clj-kondo (10)
- # cljs-dev (15)
- # clojure (81)
- # clojure-dev (2)
- # clojure-europe (13)
- # clojure-germany (1)
- # clojure-korea (2)
- # clojure-nl (1)
- # clojure-norway (19)
- # clojure-uk (7)
- # clojurescript (23)
- # core-typed (33)
- # cursive (7)
- # data-science (7)
- # datalevin (9)
- # hyperfiddle (1)
- # introduce-yourself (2)
- # malli (1)
- # matrix (17)
- # missionary (24)
- # music (1)
- # off-topic (15)
- # polylith (6)
- # reagent (10)
- # releases (5)
- # remote-jobs (1)
- # shadow-cljs (3)
- # squint (7)
- # xtdb (11)
- # yamlscript (6)
another argument to why dropping stacktraces sucks 😛 I added the stacktrace for the error, so we know at least where it fails 😛
30 | (def data #::b {:x 1 :y 2 :z 3})
---------------------^----------------------------------------------------------
No namespace: app.b found
clojure.tools.reader/read* (reader.clj:953)
clojure.tools.reader/read* (reader.clj:917)
clojure.tools.reader/read-delimited (reader.clj:198)
clojure.tools.reader/read-delimited (reader.clj:191)
clojure.tools.reader/read-list (reader.clj:209)
clojure.tools.reader/read-list (reader.clj:205)
clojure.tools.reader/read* (reader.clj:935)
clojure.tools.reader/read* (reader.clj:917)
clojure.tools.reader/read (reader.clj:988)
clojure.tools.reader/read (reader.clj:961)
...
Caused by:
Exception: No namespace: app.b found
clojure.core/the-ns (core.clj:4163)
clojure.core/ns-name (core.clj:4165)
clojure.core/ns-name (core.clj:4165)
clojure.tools.reader/read-namespaced-map (reader.clj:762)
clojure.tools.reader/read-namespaced-map (reader.clj:753)
clojure.tools.reader/read-dispatch (reader.clj:72)
clojure.tools.reader/read-dispatch (reader.clj:68)
clojure.tools.reader/read* (reader.clj:935)
clojure.tools.reader/read* (reader.clj:917)
clojure.tools.reader/read-delimited (reader.clj:198)
clojure.tools.reader/read-delimited (reader.clj:191)
clojure.tools.reader/read-list (reader.clj:209)
clojure.tools.reader/read-list (reader.clj:205)
clojure.tools.reader/read* (reader.clj:935)
clojure.tools.reader/read* (reader.clj:917)
clojure.tools.reader/read (reader.clj:988)
clojure.tools.reader/read (reader.clj:961)
(this is with shadow-cljs, regular cljs likely would have the vendorized reader variant)
ok, so the issue is that *alias-map*
contains the {b app.b}
symbol. that gets passed to ns-name
which for symbols calls find-ns
. since its just an alias it doesn't exist.
seems like it should have a special case for whether it has a Namespace
instance or a symbol? since all it needs is the string, creating a dummy empty ns seems pointless? although this is already done for all cljs namespaces anyway, so not a big deal
resolved and closed https://clojure.atlassian.net/browse/CLJS-3412