This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-15
Channels
- # announcements (10)
- # asami (5)
- # babashka (49)
- # babashka-sci-dev (8)
- # beginners (25)
- # calva (98)
- # cider (2)
- # clj-kondo (22)
- # clojure (32)
- # clojure-dev (12)
- # clojure-europe (32)
- # clojure-nl (3)
- # clojure-spec (3)
- # clojure-uk (10)
- # clojurescript (12)
- # community-development (1)
- # conjure (71)
- # cursive (7)
- # datalog (6)
- # events (2)
- # figwheel-main (2)
- # fulcro (4)
- # jobs (2)
- # kaocha (3)
- # lsp (43)
- # membrane (12)
- # missionary (9)
- # off-topic (61)
- # pathom (7)
- # polylith (2)
- # reagent (38)
- # remote-jobs (4)
- # shadow-cljs (17)
- # specter (1)
- # tools-deps (38)
- # vim (51)
- # web-security (5)
ths is weird… I am having an issue in clj-kondo v2022.03.04
where if I delete my .cache
, and then run clj-kondo --lint test/sicmutils/tex_web_test.clj
, where sicmutils.tex-web-test
IMPORTS sicmutils.env
, that in my hook, (api/ns-analysis 'sicmutils.env)
returns {}
.
which makes it impossible for my hook to look at this info and expand to a bunch of declare
forms.
but then if I explicitly invoke clj-kondo
for src
, where sicmutils.env
lives (basically point it AT the file), then the next time the cache is full
so to be clear, if I call this twice:
clj-kondo --lint src:test
it first fails, then succeedsbut I would have thought the cache would be populated for B
by B
’s requirements?
or is the cache only filled at the end of a run
I'm considering adding a pre-analysis of ns dependencies, but it's currently not there
noticed that #(gensym %)
triggers redundant fn wrapper in cljs; but gensym
is a macro here, so I would suggest that this be an exception to that rule
where is gensym a macro? (repeatedly 5 gensym)
and (source gensym)
indicate that it is not
Oh I misunderstood from this and a strange test error I was getting
Sorry, long day at the REPL! I'll debug that weird error
it was this for the record:
actual: #object[TypeError TypeError: cljs.core.gensym.cljs$core$IFn$_invoke$arity$1 is not a function]
won’t reproduce at the REPL
Fixed once I got some rest. I was rebinding gensym
but not covering the 0
arity case, since I didn’t think anyone else was calling it inside my with-redefs
…
false alarm!