lsp

2024-09-21T09:59:02.998319Z

Is there some way to get notified of circular dependencies the moment they are introduced via clj-kondo or clojure-lsp's extensions to kondo?

👀 1
borkdude 2024-09-21T09:59:38.465889Z

clojure-lsp should be able to do this, technically based on analysis from kondo. not sure if it does currently

ericdallo 2024-09-21T15:53:47.520159Z

what you mean introduced? added to http://project.cl/deps.edn etc?

ericdallo 2024-09-21T15:54:12.355709Z

but sounds like a good linter indeed

borkdude 2024-09-21T15:54:34.291419Z

I think he means circular namespaces

ericdallo 2024-09-21T15:56:13.377179Z

ah yeah, makes sense

ericdallo 2024-09-21T15:56:49.207739Z

feel free to create a issue @magnars we have a dependency-graph structure in clojure-lsp which should make easier to achieve that

2024-09-21T18:27:36.217049Z

Excellent, glad to hear it is on the table as a feature. 😊 Issue added here: https://github.com/clojure-lsp/clojure-lsp/issues/1884