This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-16
Channels
- # ai (5)
- # announcements (47)
- # aws (11)
- # babashka (20)
- # beginners (85)
- # biff (1)
- # calva (72)
- # cider (9)
- # clj-kondo (37)
- # cljfx (9)
- # cljs-dev (1)
- # clojars (2)
- # clojure (61)
- # clojure-berlin (2)
- # clojure-europe (189)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-uk (2)
- # clojurescript (51)
- # conjure (3)
- # cursive (4)
- # data-science (6)
- # datomic (6)
- # events (5)
- # fulcro (16)
- # gratitude (9)
- # holy-lambda (9)
- # introduce-yourself (6)
- # lsp (13)
- # malli (8)
- # membrane (2)
- # off-topic (47)
- # pedestal (11)
- # re-frame (15)
- # reitit (1)
- # releases (2)
- # rewrite-clj (6)
- # rum (4)
- # shadow-cljs (2)
- # tools-deps (3)
- # xtdb (25)
- # yada (13)
I just stumbled over https://github.com/clj-kondo/clj-kondo/issues/1317 because my namespace has a -
in it. Will there be any progress on this, or should I just rename my namespace to something without -
?
I think we should re-open the issue on clj-kondo, still makes sense to me so we can support that on LSP side, WDYT @U04V15CAJ?
@U02H56JNDK2 Can you give the full context (code) of how you are importing + using your var and in which clojure dialect?
@U04V15CAJ will do later in the evening when I'm at the computer. What do you mean by dialect? I'm using "pure" Clojure 1.11.1
I closed the issue again, with a comment. If we reach another conclusion I can re-open it, but I think it's the job of who uses the analysis to "do the right thing" here
I think alternatively you could require the namespace and write ->SomeRecord
instead. Which is more idiomatic than going through the Java constructor too probably
I am using brute (https://github.com/markmandel/brute/) in my project, an ECS implementation. Without going too much into details, it uses the class name as index in its internal storage. For fetching data it’s common to have code like (brute.entity/get-component system entity Rectangle)
where Rectangle
is the imported class, created from a defrecord
.
So I have to import the class in order to use brute. But I understand that this is a corner case and it doesn’t bother me too much. So I’m fine with the issue being closed. Eventually I might just rename the namespace.