This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-01
Channels
- # announcements (3)
- # babashka (20)
- # beginners (77)
- # calva (27)
- # cider (5)
- # clara (3)
- # clj-kondo (9)
- # cljs-dev (4)
- # cljsrn (5)
- # clojure (26)
- # clojure-europe (32)
- # clojure-italy (5)
- # clojure-nl (3)
- # clojure-uk (5)
- # clojurescript (25)
- # clojureverse-ops (4)
- # core-async (49)
- # cursive (15)
- # data-science (1)
- # datahike (4)
- # datomic (3)
- # docker (1)
- # events (1)
- # helix (5)
- # holy-lambda (3)
- # introduce-yourself (1)
- # jobs (1)
- # kaocha (2)
- # lsp (15)
- # malli (42)
- # off-topic (18)
- # pathom (18)
- # pedestal (12)
- # polylith (7)
- # rdf (1)
- # re-frame (22)
- # reitit (2)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (33)
- # shadow-cljs (85)
- # spacemacs (3)
- # vim (12)
- # xtdb (29)
How do I tell clj-kondo that my file .cljc
file is clojure? (I'm assuming it treats it as clojurescript based on the extension)
@benjamin.schwerdtner I'm still figuring out the best way to deal with this. I'm assuming you're writing a babashka file with a reader conditional?
Right now this is supported in config.edn
: {:cljc {:features [:clj]}}
(but still officially undocumented): it will only look at the :clj
branches of the .cljc files
ah you are right that is the initial use case. You made me realize I don't need the c
because it's only clojure now 😛
I'd like to generate a graph of my namespace dependencies - I see that there's a clj -m clj-kondo.tools.namespace-graph src
command documented under Analysis Data > Namespace graph, but it looks like it's trying to read a png file?
> Execution error (FileNotFoundException) at http://java.io.FileInputStream/open0 (FileInputStream.java:-2).
> clj-kondo.tools.namespace-graph (No such file or directory)
I looked into it and on my system it worked. I think the issue is that you haven't installed graphviz.
@winsome Feel free to post an issue and I'll look later this week. There are some better tools that use clj-kondo analysis to show namespace or even function dependencies. One of them is called morpheus by @benedek https://github.com/benedekfazekas/morpheus