Fork me on GitHub
#clj-kondo
<
2019-11-08
>
sogaiu16:11:30

that's quite an interesting article -- it's going to take a bit to digest well 🙂 thanks for mentioning it! on a related note, have you checked out clindex (https://github.com/jpmonettas/clindex)? it was mentioned in the article and i saw it was announced recently.

borkdude16:11:29

yes I think I attended the author of this article about it 🙂

borkdude16:11:29

I spotted it on Reddit

sogaiu16:11:53

same 🙂 was thinking whether it might be used to generate tags/TAGS files -- and thereby obsolete what i'm working on 🙂 haven't had much luck reaching the author though he seems to be on slack.

borkdude16:11:36

in the beginning of kondo I have considered using a triplestore like datahike as well, but I never got it to work

borkdude16:11:39

with graalvm I mean

borkdude17:11:00

and I think it would be less performant after all than manually storing information in a bunch of maps

sogaiu17:11:01

it does seem possible that it wouldn't be performant enough for real-time query -- but i was thinking it might be used to generate tags/TAGS so the performance wouldn't be a problem

borkdude17:11:10

I have an example of a babashka script here btw which pulls the clj-kondo analysis into a sqlite database: https://github.com/borkdude/babashka/blob/master/examples/sqlite.clj

sogaiu17:11:48

thanks -- i was going for the "works in many editors" angle initially

sogaiu17:11:22

there is the tree-sitter thing too to consider

dominicm19:11:58

That's really cool

sogaiu20:11:30

i tried the sqlite.clj script -- it seemed to work fine when passed "src", but something didn't enjoy being passed clj -Spath:

$ bb ~/src/babashka/examples/sqlite.clj `clj -Spath`
clojure.lang.ExceptionInfo: Cannot run program "sqlite3": error=7, Argument list too long [at line 16, column 3]
{:type :sci/error, :row 16, :col 3, :message "Cannot run program \"sqlite3\": error=7, Argument list too long [at line 16, column 3]"}
 at sci.impl.utils$rethrow_with_location_of_node.invokeStatic (utils.cljc:62)
...

borkdude20:11:38

maybe try it dependency by dependency?

borkdude20:11:07

I guess the sqlite binary doesn't like the long argument for some reason

sogaiu21:11:17

@lee no i hadn't -- thanks!