Fork me on GitHub
#clj-kondo
<
2019-08-02
>
sogaiu11:08:19

i'm looking at analysis output and seeing that there appear to be duplicates among the maps within the vector value of the :namespace-definitions key. there appear to be pairs of maps that are the same. is this expected behavior? (this is with 300d8fdf48324d662ad28b59d8a071de34d07a82)

sogaiu11:08:18

may be it's because the files analyzed were .cljc fies, for each pair, one is for clj and the other is for cljs?

borkdude15:08:57

For cljc that is expected, the :lang key explains the difference

borkdude15:08:30

Some thing may or may not be defined in one language but may be in another

lilactown20:08:46

I'm getting an error

Execution error (IOException) at java.lang.ProcessImpl/forkAndExec (ProcessImpl.java:-2).
error=2, No such file or directory

lilactown20:08:02

ah I bet I need graphviz installed

borkdude21:08:53

Maybe I should take another example in that part where I describe how to use it as an alias, that doesn't need any other tools

lilactown21:08:25

I ran it on our work project and the png won't load in Preview 😂

borkdude21:08:57

haha, I also got a very large one with our project. maybe adding a filter using a regex is nice

borkdude21:08:09

so you can only see your own namespaces

lilactown21:08:34

yeah, at work we want to know e.g. between two ns, what the path looks like (if any)

borkdude21:08:37

you can take the code and change it to your likings, since it's just an example

lilactown21:08:43

great thanks!