This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # babashka (7)
- # beginners (20)
- # calva (2)
- # clj-kondo (7)
- # clojure (31)
- # clojure-australia (3)
- # clojure-dev (10)
- # clojure-europe (7)
- # clojurescript (13)
- # conjure (1)
- # cursive (27)
- # datomic (168)
- # events (3)
- # fulcro (2)
- # garden (3)
- # honeysql (2)
- # jobs (1)
- # joker (1)
- # lsp (52)
- # releases (1)
- # shadow-cljs (11)
- # slack-help (4)
- # spacemacs (22)
- # sql (1)
@jr0cket you mentioned that adding the lsp layer would automatically add clj-kondo. That’s why I added the
in spacemacs configuration layers. However, I don’t think the linting is happening. Here’s my .spacemacs file:
(lsp :variables lsp-lens-enable t)
The lens variable only shows how many places a function is called. It's not connected to linting.
If you type
(defn  ) it should underscore that text and when you move the cursor over the underscored text then the error message shows.
Your .spacemacs config has LSP, Clojure layer config to add clj-kondo and additional packages that adds flycheck-clj. This is a lot of duplication, so you should remove most of that config
If you do not use LSP already, then remove it. LSP does require quite a lot of additional configuration, especially if you are used to the way Cider works
I had the :variables clojure-enable-linters ’clj-kondo even before I added (lsp :variables lsp-lens-enable t), but clj-kondo wasn’t working
If you are using LSP, you can either disable it for Clojure or remove this Clojure configuration variable
clojure-enable-linters 'clj-kondo and the additional-packages packages
It seems you are using LSP for python. Do you want to use LSP for Clojure?
okay I removed (lsp :variables lsp-lens-enable t), and I’m back to where I was before
If you dont know what LSP does, then I'll assume you dont need it for Clojure. This simplifies things
Please confirm you are using Spacemacs develop branch. On the Spacemacs home buffer,
SPC b h in the top right corner is should have a version number, `http://0.300.xxx where xxx is the version of emacs you are using.
If this version is 0.200 then clj-kondo will not work, but I can show you how to upgrade
There is a full guide to upgrading here https://practicalli.github.io/spacemacs/install-spacemacs/switch-to-develop.html
It is recommended that you use Emacs version 26.3 or 27.x (any version of 27)
You can either update your existing configuration, or take a backup of your .spacemacs config and start from scratch
There are a few steps that should be done, but they only need to be done once. Feel free to ask any questions if its not obvious.
Now you are on Spacemacs 0.300, then updating Spacemacs is via Git. I use Magit. There is a guide to updating here https://practicalli.github.io/spacemacs/install-spacemacs/update.html Suggest only updating Spacemacs if you know there is a feature you need or a bug fix. Updating packages is the same as version 0.200