This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-06
Channels
- # babashka (62)
- # beginners (52)
- # calva (37)
- # clj-kondo (23)
- # cljs-dev (13)
- # clojure (18)
- # clojure-europe (7)
- # clojure-sg (1)
- # clojure-spec (27)
- # clojurescript (37)
- # datomic (14)
- # events (2)
- # fulcro (9)
- # graalvm (12)
- # helix (1)
- # introduce-yourself (1)
- # keyboards (3)
- # lsp (3)
- # missionary (24)
- # nextjournal (7)
- # pedestal (3)
- # polylith (15)
- # re-frame (5)
- # reitit (4)
- # releases (2)
- # shadow-cljs (54)
- # testing (7)
- # uncomplicate (4)
Whatever file I lint in this CLJS project, I get this same error:
src/salus/client/util.cljc:0:0: error: Can't parse src/salus/client/util.cljc, Configuration error. Expected fully qualified symbol, got: salus.client.js.citizen.domain.language
Now, salus.client.js.citizen.domain.language
is a real namespace, but I can't figure out what's really wrongYou’re expected to put a fully qualified symbol somewhere where you’ve only used an unqualified one
Ah right, someone hard a brain fart it seems, it shouldn't even be in there Thanks!
I am feeling a bit dumb. I'm trying to setup https://github.com/lilactown/helix so that consuming projects will be able to automatically get clj-kondo config for its macros. I haven't been able to get it to work yet
in my consuming project, I can see the config file on the classpath:
user=> (slurp (io/resource "clj-kondo.exports/lilactown/helix/config.edn"))
"{:lint-as {helix.core/defnc clojure.core/defn\n helix.core/defhook clojure.core/defn\n helix.core/fnc clojure.core/fn}}\n"
@lilactown this is correct. but you need to lint your classpath with --copy-configs
and then clj-kondo will copy the config to the .clj-kondo
directory if that directory exists
I see. I thought I just needed to run the command to copy the config and nothing more
correct, this is to prevent problems with config that people don't want in their project for some reason, safety, etc
in an app or service, do people commit just their .clj-kondo/config.edn
and let individual devs run the copy command? or do people commit the copied configs from libs too?
@lilactown I'd say commit in the entire directory except .cache
so your team mates have the exact same config