dev-tooling

mauricio.szabo 2024-01-08T20:58:19.623749Z

Folks, a question about nREPL completions: when I have compliment on the classpath, will it use it? I know compliment asks for a "context" parameter, do I also have to pass that to nREPL to complete things?

oyakushev 2024-01-10T11:49:39.927099Z

If you mean nREPL's basic completion functionality, then it doesn't use Compliment directly. The latest master version of nREPL uses simplified Compliment code (without support for contexts).

oyakushev 2024-01-10T11:50:32.294169Z

BTW, you don't need to read Elisp, cider-nrepl is in Clojure: https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/complete.clj

vemv 2024-01-10T12:17:05.715909Z

I referred to supplying a context https://github.com/clojure-emacs/cider/blob/24b060ab8ac28922b0dddeed104572e98fc8a6ea/cider-completion-context.el

๐Ÿ‘ 1
vemv 2024-01-09T07:14:40.301309Z

cider-nrepl should be a good code read barebones completions and compliment-based completions are different nrepl ops - there's no automatic upgrade contexts are computed client-side, you can refer to cider (elisp) for an example Hope it helps!

bozhidar 2024-01-11T19:56:01.351109Z

You can actually instruct nREPL to use compliment if you have it on the classpath via *completion-fn*. Perhaps at some point weโ€™ll change nREPL to pick up compliment automatically, given it doesnโ€™t have much (any?) competition in the completion space these days.

๐Ÿ‘€ 1
mauricio.szabo 2024-01-09T19:06:02.064719Z

I have a hard time reading elisp, but no worries - I already have a completions code on my side, just wanted to be sure that I wasn't doing the wrong thing ๐Ÿ™‚. I though there was a possibility of an automatic upgrade, so that's why I asked!