This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-11
Channels
- # announcements (1)
- # babashka (70)
- # beginners (8)
- # calva (5)
- # cider (9)
- # clojure (48)
- # clojure-austin (68)
- # clojure-europe (29)
- # clojure-norway (30)
- # clojure-uk (5)
- # clojuredesign-podcast (2)
- # cursive (19)
- # datomic (10)
- # emacs (11)
- # events (2)
- # exercism (4)
- # fulcro (2)
- # hyperfiddle (29)
- # introduce-yourself (2)
- # jobs-discuss (4)
- # kaocha (1)
- # leiningen (8)
- # lsp (8)
- # malli (2)
- # matcher-combinators (20)
- # nrepl (15)
- # off-topic (33)
- # reagent (7)
- # releases (4)
- # shadow-cljs (42)
- # spacemacs (6)
- # sql (6)
- # squint (10)
- # vim (3)
Q: when I click on the FQN of a clj-kondo hook I often end up in a .clj-kondo
folder where a copy of clj-kondo.exports
is stored. How can I configure clojure-lsp to always bring me to the original exports
file instead if it is in the same project tree?
Example:
my-sub-project/resources/clj-kondo.exports/my-company/my-sub-project/ns_hooks.clj
contains the hook definition as well as it is copied by clj-kondo into
.clj-kondo/my-company/my-sub-project/ns_hooks.clj
and command-click brings me here while I want to end up in the former file.
This confuses me as I may edit the former file (which is not checked into the repo) and then observe an effect that others can’t reproduce since they only have the original file.
Not sure if it's that simple, what happens if the hook is not form your project but form another one?
Probably a reasonable place to be would be file in that project’s resources folder.
the problem is that clojure-lsp analyze and knows what is in the classpath, probably that resources folder is not in the classpath, so it's unknown for clojure-lsp
resources should be in classpath
whereas .clj-kondo
isn’t