babashka-sci-dev

flowthing 2022-09-08T06:31:37.535869Z

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.

borkdude 2022-09-08T10:08:01.940889Z

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

borkdude 2022-09-08T10:15:47.035379Z

There is also an issue about this here: https://github.com/babashka/babashka.nrepl/issues/55

flowthing 2022-09-08T10:18:43.730549Z

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

flowthing 2022-09-08T12:14:07.357559Z

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.

borkdude 2022-09-08T12:14:53.597619Z

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

flowthing 2022-09-08T12:15:35.210499Z

Oh, that’s right. picard-facepalm