Fork me on GitHub
#planck
<
2018-11-05
>
borkdude08:11:02

executing js/window in planck gives maximum call stack exceeded

borkdude08:11:44

same for js/global

lambdam11:11:44

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?

mfikes13:11:57

@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.)

borkdude13:11:26

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