This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-04
Channels
- # announcements (10)
- # asami (6)
- # babashka (22)
- # beginners (44)
- # biff (1)
- # calva (8)
- # clj-kondo (13)
- # clojure (62)
- # clojure-art (1)
- # clojure-europe (27)
- # clojure-nl (1)
- # clojure-norway (19)
- # clojure-spec (19)
- # clojure-uk (2)
- # component (29)
- # datascript (1)
- # fulcro (9)
- # gratitude (2)
- # kaocha (6)
- # klipse (1)
- # luminus (16)
- # malli (9)
- # nbb (5)
- # off-topic (4)
- # reagent (5)
- # shadow-cljs (85)
- # spacemacs (1)
- # tools-deps (10)
- # vim (9)
- # xtdb (2)
@borkdude I assume correct+file.clj
is a valid Clojure filename, right? Because I just noticed that the namespace-name-mismatch
linter behaves incorrectly on that file name. Before I look into it, I just wanted to confirm that it is indeed a valid file name.
Depends on the OS maybe? I would have to look into the correctness as much as you would, using google + macOS + Windows + linux
it's a valid namespace name
Thanks @U064X3EF3; do you maybe also know whether it is a valid filename on all supported platforms?
whether it's a valid file name is probably os-dependent
don't know
So the issue is probably that we are calling munge
on the ns name while we should call demunge
on the filename.
user=> (clojure.lang.Compiler/demunge "foo+bar")
"foo+bar"
user=> (munge "foo+bar")
"foo_PLUS_bar"
(and here is me asking is demunge can be become public again :)
https://ask.clojure.org/index.php/11371/consider-adding-demunge-into-clojure-core?show=11371#q11371http://clojure.github.io/clojure/clojure.main-api.html#clojure.main/demunge