Fork me on GitHub
#babashka-sci-dev
<
2022-09-08
>
flowthing06:09:37

Is there a way to get every interned keyword in the runtime (for editor autocompletion)? In Clojure, I use this ugly hack:

(let [field (.getDeclaredField clojure.lang.Keyword "table")]
    (.setAccessible field true)
    (map keyword (.keySet (.get field nil))))
But that won’t work with sci/Babashka.

borkdude10:09:01

@flowthing Hi. I think we need to this in bb at compile time

flowthing10:09:43

Gotcha. :thumbsup: That won’t help me, unfortunately, but this is something I can live without.

flowthing12:09:07

Regarding this: https://clojurians.slack.com/archives/CLX41ASCS/p1662578187052399 I’m wondering whether it would make sense to have sci/copy-ns copy :file meta as well. This would let us implement goto definition for copied things.

borkdude12:09:53

not really though right? the file is around on the system that is compiling bb but not on other systems

flowthing12:09:35

Oh, that’s right. picard-facepalm