lsp 2025-08-18

I just reloaded Calva, which I suspect must in turn be loading this latest version of clojure-lsp, and I'm getting thousands of warnings of cyclic dependencies, which are all false-positives. They all involve my very deliberate use of :as-alias. If :as-alias is going to register as a cyclic dependency, can I turn that off?

yeah, we will take a look at it, meanwhile you can use config: .lsp/config.edn

{:linters {:clojure-lsp/cyclic-dependencies {:level :off}}}

Thanks Eric. I did do that for now, based on suggestions from Sean and Peter.

> New feature: Add clojure-lsp/cyclic-dependencies linter to detect cyclic dependencies between namespaces in the project. @ericdallo This feature seems a bit... overzealous... I have (require 'some.ns) forms in comments for developing and I'm seeing nses flagged for cyclic dependencies with this. I can put #_ in front of the require inside the comment but that's kind of a PITA.

It also doesn't seem to respect :as-alias? That doesn't introduce a cycle because it doesn't load the ns.

I've added this to my config.edn for now since it's essentially unusable on my work codebase right now:

:linters {:clojure-lsp/cyclic-dependencies {:level :off}}
I'll open issues for each of these.

#2107 and #2108

Ah yes, we should ignore require in comments

thanks for the issues