Fork me on GitHub
#cider
<
2022-10-02
>
Benjamin11:10:21

cider nrepl + clojurescript completions: Not sure if I miss something here an example:

(ns
    app.main
    (:require
     ["node:child_process" :as p]))

p/|
no completions for cursor at | and I also don't see any javascript specific stuff in cider.nrepl or compliment. #nbb’s nrepl server actually has a piece that calls js/Object.getOwnPropertyNames of the object recursively

Benjamin11:10:28

so the question is if I am missing the javascript specific part, or if that is a growth area for cider middleware to add such completions

rolt10:10:28

there should be: https://github.com/clojure-emacs/clj-suitable but it doesn't seem to work on my setup either, I will try to look into it this week. I'll have to do a bunch of js interop soon

Benjamin10:10:32

CIDER will always use the static code completion provided by suitable, regardless of the ClojureScript runtime, but the dynamic completion is not currently available with shadow-cljs. (See this ticket for more details)

Benjamin10:10:39

that'd be my usecase

rolt10:10:34

yeah me too, but the related issue seem fixed https://github.com/clojure-emacs/clj-suitable/pull/18

Benjamin10:10:37

this dynamic completion really instantly gives it a more magic feel. I might also check later this week.