lsp

wevrem 2025-08-18T20:27:39.443619Z

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?

ericdallo 2025-08-18T21:17:07.306889Z

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

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

wevrem 2025-08-18T21:49:23.843029Z

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

seancorfield 2025-08-18T20:30:00.851949Z

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

seancorfield 2025-08-18T20:37:21.866499Z

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

seancorfield 2025-08-18T20:42:01.333499Z

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.

seancorfield 2025-08-18T20:48:37.887239Z

#2107 and #2108

ericdallo 2025-08-18T21:14:21.084469Z

Ah yes, we should ignore require in comments

ericdallo 2025-08-18T21:17:14.945769Z

thanks for the issues