planck

Planck ClojureScript REPL
dpsutton 2020-04-19T00:33:18.030400Z

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

mfikes 2020-04-19T00:34:25.031Z

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

dpsutton 2020-04-19T00:35:14.032200Z

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

mfikes 2020-04-19T00:35:49.032700Z

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

mfikes 2020-04-19T00:37:29.033100Z

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

dpsutton 2020-04-19T00:38:26.033400Z

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=>

dpsutton 2020-04-19T00:38:36.033600Z

yes its get-completions

dpsutton 2020-04-19T00:38:45.034Z

it works but issues a warning on each invocation

dpsutton 2020-04-19T00:39:05.034700Z

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

mfikes 2020-04-19T00:39:06.034800Z

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

dpsutton 2020-04-19T00:39:44.035700Z

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

mfikes 2020-04-19T00:40:15.036200Z

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")

mfikes 2020-04-19T00:40:34.036500Z

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

dpsutton 2020-04-19T00:40:37.036600Z

why the @?

mfikes 2020-04-19T00:40:49.036900Z

Yeah, the @ isn't required

mfikes 2020-04-19T00:41:45.037400Z

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

dpsutton 2020-04-19T00:42:17.037900Z

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

mfikes 2020-04-19T00:42:43.038400Z

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