Fork me on GitHub
#planck
<
2020-04-19
>
dpsutton00:04:18

Is it possible for planck.repl/completions to be marked public?

mfikes00:04:25

@dpsutton There is something along those lines that was made public for use by Emacs...

dpsutton00:04:14

Hmm. I’d love to know. I’m revamping inf-clojure and wanted something. As far as I can tell it throws warnings about being non-public

mfikes00:04:49

My foggy memory is planck.repl/get-arglists ...

mfikes00:04:29

Are you maybe referring to planck.repl/get-completions ?

dpsutton00:04:26

ljs.user=> (planck.repl/get-completions "map")
             ^
WARNING: var: planck.repl/get-completions is not public at line 1
#js ["map" "MapEntry" "map" "map-entry?" "map-indexed" "map?" "mapcat" "mapv"]
cljs.user=>

dpsutton00:04:36

yes its get-completions

dpsutton00:04:45

it works but issues a warning on each invocation

dpsutton00:04:05

i think for arglists i'm just inspecting metadata so nothing custom needed

mfikes00:04:06

Yeah, I don't see why something like that couldn't be made public. (Or perhaps a variant that returns a vector...)

dpsutton00:04:44

yeah i think for our purposes a simple vector would be better. but we can always handle the marshalling on our side

mfikes00:04:15

In the meanwhile, if you want to see how it would behave without warnings, I wonder if you can get away with calling it as (@#'planck.repl/get-completions "map")

mfikes00:04:34

Or, actually, just (#'planck.repl/get-completions "map")

mfikes00:04:49

Yeah, the @ isn't required

mfikes00:04:45

But, if you'd like a version that is public, retuns a vector, etc, feel free to add an issue to the Planck repo

dpsutton00:04:17

will do. thanks so much. hope you're safe

mfikes00:04:43

Yep, going nowhere these days. 🙂 Hope you are safe too.