lsp 2026-07-20

A few days ago, indenting broke on my custom macro. It sits in its own private github and has the proper clj-kondo and clojure-lsp exports, which worked fine up until a couple of days ago. Even copying the :extra-indents setting directly into my local copy of .lsp/config.edn is not solving this. I checked the documentation for clojure-lsp and cljfmt and I don't see that the syntax/instructions of the settings has changed. UPDATE: I remove the namespace in the local config.edn setting and it worked. That feels like I'm not following instructions, but at least it worked.

Could you provide the configuration? I can test it with cljfmt at least.

In the macros library, I have file resources/clojure-lsp.exports/wevre/macros/config.edn and it contains

{:cljfmt {:extra-indents {wevre.macros/doall-for [[:block 1]]}}}
That was working fine. I pulled in io.github.wevre/macros as a dep in other projects and it was linted and indented correctly. (The linting is controlled, of course, by a similar config file under clj-kondo exports with this setting: {:lint-as {wevre.macros/doall-for clojure.core/for}}). It stopped indenting correctly a few days ago. (Three days–I checked my commit history.) To get it back, in my local project I added the following to .lsp/config.edn:
{:cljfmt {:extra-indents {... doall-for [[:block 1]] ...}}}
Curiously, if I added it namespaced, wevre.macros/doall-for, it won't work. But if I just add it 'bare' then it works. I also noticed that if I write out doall-for in a file, it gets the "I don't know what this is" squiggles, but the code actions or quick fix options don't seem to know anymore about wevre.macros and don't offer to add that require. It's like clojure-lsp doesn't know about wevre.macros anymore.

I think I figured it out. I had a :override-deps in one of my aliases that pointed directly to my local copy of wevre/macros, and clojure-lsp was finding it there. But when I took that override out, now the library was coming from github and the <org> was no longer wevre it was io.github.wevre. I changed/added that org to the exports in the macros project and now I think it is working again.

👍 1