This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-28
Channels
- # beginners (98)
- # cider (11)
- # clj-kondo (18)
- # cljsrn (4)
- # clojure (31)
- # clojure-uk (5)
- # clojuredesign-podcast (1)
- # clojurescript (18)
- # cursive (11)
- # dirac (5)
- # emacs (1)
- # figwheel-main (6)
- # fulcro (13)
- # off-topic (3)
- # pathom (3)
- # reagent (3)
- # rewrite-clj (1)
- # shadow-cljs (2)
- # tools-deps (19)
- # vim (2)
@lee yes, i think. the cache files for clj-kondo contain def info too w/ ns info, but no file path. when the cache is created one can pass in a classpath, but this doesn't appear to get saved anywhere.
ah, I thought you might have been talking about clojure analyzer, which you were not. Since you have the classpath I suppose you could search it as a post processing step to find your files (some of which will be in jars)... or you could ask @U04V15CAJ to add more info to clj-kondo output.
I'm building this feature: https://twitter.com/borkdude/status/1155235517258260481 so people don't have to rely on implementation details of the cache
@lee actually, i don't have the classpath -- i was hoping to get it (or file paths for namespaces) from clj-kondo somehow 🙂 the upcoming(?) clj-kondo analysis feature definitely looks like it could be quite relevant.
there is also this issue: https://github.com/borkdude/clj-kondo/issues/373
after running a freshly built version, i see the filepaths among the analysis output now -- looks promising 🙂
given:
(ns wo)
(with-open [out ( "/tmp/remove.this.txt")]
(.write out 65))
as wo.clj, clj-kondo --lint wo.clj works fine (no info messages, just a summary output).
as wo.cljc, clj-kondo --lint wo.cljc gives:
wo.cljc:3:2: info: unresolved symbol with-open
wo.cljc:3:13: info: unresolved symbol out
linting took 48ms, errors: 0, warnings: 0
this is with 18d97a6c3ca7d5d9eba351aa4291fc828bd2b215 -- why is the behavior different?Because with-open doesn’t mean anything in CLJS. You have to put a conditional around it
I’m not able to get installation process for Joker
Can anyone pls let me know
@jeevarajmvsvg do you mean clj-kondo together with joker?