This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
has anyone put in work to add docstring support to defprotocol
or similar functions that aren't defined in clojure/core.clj
? i'd be willing to help if not
I took a look and I can't understand how it's a lsp issue, we don't have any custom behavior for defprotocol itself
lol excellent. I’ll try a smaller repro with clj-kondo alone to see what’s up
it seems there is no var-definition in analysis in lsp:
(filter
#(= 'defprotocol (:name %))
(:var-definitions (get (:analysis @clojure-lsp.db/db*) "jar:file:///home/greg/.m2/repository/org/clojure/clojure/1.11.1/clojure-1.11.1.jar!/clojure/core.clj")))
=> ()
so it may be something with the way we call kondo that makes it don't return those analysis👍 1
Good find!