planck

Planck ClojureScript REPL
borkdude 2018-11-05T08:05:02.014600Z

executing js/window in planck gives maximum call stack exceeded

borkdude 2018-11-05T08:05:44.015Z

same for js/global

lambdam 2018-11-05T11:26:44.019800Z

Hello, I struggle to get completions to work in Spacemacs. I have a .cljs file with a working REPL (I can execute forms). I also have the documentation being displayed in the mini-buffer. Though, I can't have the completion working. When I press Tab, there is the [No matches] message. When I execute (planck.repl/get-completions "map"), I get the response back in the REPL. I even forced the value of inf-clojure-completion-form to the planck one: (planck.repl/get-completions "%s") but it still doesn't work. Am I missing something?

mfikes 2018-11-05T13:15:57.022Z

@dam That function is not meant for external use. It is internally invoked like this:

(planck.repl/get-completions "(map")
to produce results like
#js ["map" "MapEntry" "map" "map-entry?" "map-indexed" "map?" "mapcat" "mapv"]
Having said that, we could add a public method for use in IDEs if we define its semantics. (Something like this was done for planck.repl/get-arglists.)

borkdude 2018-11-05T13:23:26.022500Z

@mfikes Great. I was looking for some object to add some property to 🙂