spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
zendevil 2021-03-14T07:00:45.054900Z

@jr0cket you mentioned that adding the lsp layer would automatically add clj-kondo. That’s why I added the

(lsp :variables lsp-lens-enable t)
in spacemacs configuration layers. However, I don’t think the linting is happening. Here’s my .spacemacs file:

zendevil 2021-03-14T07:02:32.055100Z

practicalli-john 2021-03-14T11:13:42.060300Z

@ps 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.

zendevil 2021-03-14T11:15:38.061900Z

@jr0cket I do not see the underscore nor the message

practicalli-john 2021-03-14T11:16:51.063800Z

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

practicalli-john 2021-03-14T11:18:04.065800Z

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

zendevil 2021-03-14T11:22:16.067300Z

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

practicalli-john 2021-03-14T11:22:20.067500Z

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

practicalli-john 2021-03-14T11:23:20.068700Z

It seems you are using LSP for python. Do you want to use LSP for Clojure?

zendevil 2021-03-14T11:23:21.068800Z

okay I removed (lsp :variables lsp-lens-enable t), and I’m back to where I was before

zendevil 2021-03-14T11:23:46.069400Z

I don’t know what lsp is or does

practicalli-john 2021-03-14T11:25:08.070500Z

If you dont know what LSP does, then I'll assume you dont need it for Clojure. This simplifies things

practicalli-john 2021-03-14T11:26:55.072200Z

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

zendevil 2021-03-14T11:28:03.072500Z

yes it’s http://0.200.xxx

zendevil 2021-03-14T11:28:09.073Z

how do I upgrade it?

practicalli-john 2021-03-14T11:29:06.073300Z

There is a full guide to upgrading here https://practicalli.github.io/spacemacs/install-spacemacs/switch-to-develop.html

practicalli-john 2021-03-14T11:31:14.074100Z

It is recommended that you use Emacs version 26.3 or 27.x (any version of 27)

practicalli-john 2021-03-14T11:32:34.074800Z

You can either update your existing configuration, or take a backup of your .spacemacs config and start from scratch

practicalli-john 2021-03-14T11:33:23.075600Z

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.

zendevil 2021-03-14T11:49:04.076Z

@jr0cket thanks. I was able to upgrade and now clj-kondo works!

1👍
practicalli-john 2021-03-14T12:00:20.078600Z

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

practicalli-john 2021-03-14T12:01:45.079300Z

You may find a few new keybindings or some slight changes to key bindings, as you have just added over 2 years of updates to Spacemacs