conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
2021-02-04T17:17:27.061800Z

hmm, is there a good guideline how to debug coc/conjure autocompletion?

dharrigan 2021-02-06T16:51:50.063300Z

still having a problem?

Olical 2021-02-06T16:53:32.063700Z

Hmm do you have CIDER's middleware set up in your nREPL?

Olical 2021-02-06T16:53:43.063900Z

Because that's required for completion.

2021-02-07T11:56:07.074900Z

vlaaad/reveal                 {:mvn/version "1.3.193"}
   564                 nrepl/nrepl                   {:mvn/version "0.8.3"}
   565                 cider/cider-nrepl             {:mvn/version "0.25.7"}
   566                 refactor-nrepl/refactor-nrepl {:mvn/version "2.5.0"}

2021-02-07T11:56:32.075100Z

I have those depencies, anything more is needed?

Olical 2021-02-07T11:58:15.075300Z

The dependencies are correct, but have you set the middleware when starting up your nREPL? https://docs.cider.mx/cider/basics/middleware_setup.html Not sure how you're starting your REPL, this might all already be done, but I just want to confirm.

Olical 2021-02-07T11:58:35.075500Z

Just adding the dependencies isn't enough. If you use something like https://github.com/clojure-vim/vim-jack-in you get all this set up for you.

Olical 2021-02-07T11:59:12.075800Z

The CIDER and nREPL websites have reaaaaly good documentation for all of this too, it's all just one liners that I copy from that website then project to project.

Olical 2021-02-07T11:59:33.076Z

(again, you may have all of this set up, but I want to confirm that this core dependency is all okay before chasing down weirder bugs etc)

2021-02-07T12:00:01.076200Z

Iโ€™ll check the setup, that might be that

Olical 2021-02-07T12:00:39.076400Z

I need to add support for nREPL 0.8+'s built in completion without CIDER, but I just haven't sat down to do it. It's not as powerful, but it's a baseline that requires no extra deps which is cool.

Olical 2021-02-07T12:01:01.076600Z

Maybe in the next update, just publishing one now though ๐Ÿ™‚

dharrigan 2021-02-07T12:09:07.076800Z

This is my start-nrepl function

dharrigan 2021-02-07T12:09:12.077Z

(defn start-nrepl
  [env-port]
  (let [server-map (nrepl/start-server
                    :port (or env-port 0)
                    :handler (apply nrepl.server/default-handler
                                    (-> (map #'cider.nrepl/resolve-or-fail cider.nrepl/cider-middleware)
                                        (conj #'refactor-nrepl.middleware/wrap-refactor)
                                        (conj #'portal.nrepl/wrap-portal))))
  ;                                      (conj #'vlaaad.reveal.nrepl/middleware))))
        port (:port server-map)
        port-file (io/file ".nrepl-port")]
    (.deleteOnExit port-file)
    (spit port-file port)
    (println (ansi/green (str "nREPL client can be connected to port " port)))))

dharrigan 2021-02-07T12:09:27.077200Z

Maybe that might be helpful ๐Ÿ™‚

2021-02-04T17:18:13.061900Z

I can see coc-conjure being a coc source for completion in :CocList sources

2021-02-04T17:18:51.062100Z

but donโ€™t get any completion for eg (clojure.string/s

2021-02-04T17:26:25.062300Z

tried enabling let g:conjure#debug = v:true nothing interesting shows up

2021-02-04T17:26:36.062500Z

:CocInfo shows: