This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-05-06
Channels
- # announcements (37)
- # babashka (17)
- # beginners (20)
- # calva (2)
- # clj-kondo (15)
- # cljs-dev (1)
- # clojure (6)
- # clojure-austin (2)
- # clojure-china (3)
- # clojure-europe (27)
- # clojure-korea (1)
- # clojure-nl (1)
- # clojure-norway (18)
- # clojurescript (13)
- # conjure (3)
- # datomic (31)
- # events (3)
- # honeysql (14)
- # jobs-discuss (33)
- # leiningen (4)
- # lsp (57)
- # membrane (3)
- # missionary (5)
- # off-topic (1)
- # releases (3)
- # shadow-cljs (18)
- # slack-help (2)
- # specter (2)
- # yamlscript (10)
Can I entreat someone for a spot check on https://github.com/taoensso/encore/pull/76 I opened on taoensso/encore
to add a clj-kondo hook for a macro in that library?
This is my first time writing a kondo hook and I'd like to make sure I get it correct because encore is a transitive dependency pulled into a high number of clojure products across the community.
which macro should I lint as? Perhaps I didn't look closely enough.
(enc/defn-cached )
I couldn't think of anything obvious in clojure.core that matched that formAfter upgrading manifold
from 0.2.4 to 0.4.2, I’ve started getting unresolved-var
diagnostics on some functions defined in the manifold.deferred
ns, for example manifold.deferred/success-deferred
. I thought maybe the function was deleted, but it https://github.com/clj-commons/manifold/blob/12950654f185c65156a5817f5bec79a3afbfe401/src/manifold/deferred.clj#L702 it’s still defined. Should I report this as a bug? If it’s helpful, I have a very minimal reproduction.
I can reproduce the problem with the following project:
;;; deps.edn
{:paths ["src"]
:deps {manifold/manifold {:mvn/version "0.2.4"}}}
;;; src/example.clj
(ns example
(:require [manifold.deferred :as d]))
(d/success-deferred nil)
That will have no lint. But if I upgrade manifold to 0.4.2 and run the following code, I’ll get an unresolved-var
warning:
$ rm -rf .clj-kondo/.cache
$ clj-kondo --lint "$(clojure -Spath)" --dependencies --parallel --copy-configs
$ clj-kondo --lint src
src/example.clj:4:2: warning: Unresolved var: d/success-deferred
linting took 5ms, errors: 0, warnings: 1
before posting an issue, perhaps you can find out if this is due to a change in manifold or in clj-kondo?
if it's a change in manifold, it may just be an issue with their config? https://github.com/clj-commons/manifold/tree/master/resources/clj-kondo.exports/manifold/manifold
Any advice on how to do that? Maybe check out manifold and change my sample project’s deps.edn to use that local dep? Then delete their clj-kondo config, or git bisect through their history?
OK, I’ll keep debugging. Will post back here with what I find.