This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-05
Channels
- # announcements (14)
- # aws (7)
- # babashka (28)
- # beginners (16)
- # calva (2)
- # cider (1)
- # clj-commons (8)
- # clj-kondo (29)
- # clojure (213)
- # clojure-europe (39)
- # clojure-losangeles (2)
- # clojure-norway (9)
- # clojure-spec (2)
- # clojurescript (11)
- # community-development (1)
- # conjure (2)
- # cursive (6)
- # datalevin (2)
- # datomic (8)
- # emacs (29)
- # events (1)
- # fulcro (22)
- # graalvm (14)
- # improve-getting-started (1)
- # jobs (1)
- # lambdaisland (5)
- # leiningen (4)
- # lsp (7)
- # malli (13)
- # meander (11)
- # membrane (13)
- # off-topic (23)
- # polylith (9)
- # re-frame (4)
- # reagent (7)
- # reitit (6)
- # releases (2)
- # sql (58)
- # testing (8)
- # tools-deps (18)
- # web-security (2)
Hi guys! I have some trouble to configure clj-kondo
and emacs
with use-package
(see: https://clojurians.slack.com/archives/CHY97NXE2/p1664955578510879)
i'm not sure i understand the problem. clj-kondo-clj is properly configured. Do you want both clj-kondo-clj and clj-kondo-edn ? from the name i'd quess clj-kondo-edn should only run on .edn files. Is there a problem when you enable flycheck-mode ?
Sorry for the explanation. In fact, clj-kondo error and warning are not reported in the current buffer.
i'm not sure i understand, have you tried enabling flycheck-mode ? M-x flycheck-mode
or M-x global-flycheck-mode
Ok M-x flycheck-mode
works! Thanks @U02F0C62TC1. But when I restart emacs with this configuration. flycheck-mode still disabled
You may be interested on setting up lsp support which already has clj-kondo built-in on clojure-lsp: https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/
flycheck-mode will enable in it a single buffer, global-flycheck-mode will enable it for every buffer for instance to enable it after init:
(use-package flycheck
:config (add-hook 'after-init-hook 'global-flycheck-mode))
but you could also use something like:
(use-package clojure-mode
:config (progn ... (add-hook 'clojure-mode-hook 'flycheck-mode)))
Thanks @UKFSJSM38 and @U02F0C62TC1.
clojure-lsp
can be used with cider
?
I mention on that guide, lsp == static analysis, like IDE features while cider == runtime, repl features
https://clojure-lsp.io/features/you will find all lsp features supported
Ok got it! I will then try clojure-lsp
🙂 Thanks @UKFSJSM38 for your explications.
@UHZPYLPU1 Glad to see your problem is solved. If there's anything that would be helpful to add to flycheck-clj-kondo's README, feel free to submit a PR.
@U04V15CAJ yes, I wanted to do this 🙂 for the plain install with flycheck
(without lsp). @UKFSJSM38 convinced me to try clojure-lsp
babashka tasks via shell-command in emacs: https://benjamin-asdf.github.io/faster-than-light-memes/bashing-is-better-than-extending.html
@U02CV2P4J6S that was an interesting read (i got most of the way through...) i had some things not work for me mid way and i'm not sure why.
@U0DJ4T5U1 if you feel like it you can post me your errors