This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-21
Channels
- # announcements (3)
- # architecture (5)
- # babashka (19)
- # beginners (145)
- # calva (1)
- # chlorine-clover (18)
- # cider (10)
- # clj-kondo (5)
- # cljsrn (3)
- # clojure (56)
- # clojure-berlin (19)
- # clojure-czech (2)
- # clojure-europe (32)
- # clojure-finland (2)
- # clojure-nl (3)
- # clojure-portugal (2)
- # clojure-spec (8)
- # clojure-uk (48)
- # clojurescript (48)
- # conjure (50)
- # cryogen (1)
- # cursive (28)
- # datomic (54)
- # depstar (12)
- # emacs (1)
- # events (8)
- # figwheel-main (6)
- # fulcro (4)
- # helix (4)
- # java (2)
- # jobs (2)
- # leiningen (1)
- # off-topic (29)
- # parinfer (4)
- # pathom (6)
- # portkey (3)
- # reagent (1)
- # remote-jobs (3)
- # reveal (16)
- # shadow-cljs (42)
- # sql (20)
- # tools-deps (11)
- # vim (4)
- # vrac (2)
Ran into a strange thing today: I have a namespace that defines a function format
; it has (:refer-clojure :exclude [format])
, it works when run from a regular REPL, it works when run in tests (the ns required :as sut
and then sut/format
). But via Chlorine, it seems to think format
is clojure.core/format
. I can't run (format ...)
in my ns because Chlorine seems to run (clojure.core/format ...)
and even when I try to run the tests, it seems to think sut/format
doesn't exist...
Yeah, I'm real puzzled. Not sure what's going on there.
I've tried it on two Chlorine setups: macOS and Windows+WSL. Same weird behavior.
@seancorfield i get the same issue on linux fwiw
i tried explicitly evaluating in-ns
as well before evaluating a custom format
defined in an ns with (:refer-clojure :exclude [format])
Yeah, it's weird because in another ns it seems to be okay to define format
😐
Wow, strange indeed. I'll look at it right now
Seems like a bug. Probably on my part, really...
Right, found out. To avoid more bizarre errors, I was using ns
instead of in-ns
before running any code on specific namespace. But it seems that its behavior is quite bizarre when a namespace already exist 😞
Cool. I just went to check how it would behave in the namespace-not-existing case and see you've preserved that behavior. Thanks for the quick fix!
Yes, when the namespace does not exist Clojure sometimes give such a strange error that's hard to explain what's happening...
Thanks for the quick fix on that @mauricio.szabo -- I can confirm that my format
issue has gone away now 🙂