cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
richiardiandrea 2021-01-19T01:18:58.038800Z

Hi there! Is anybody using which-key by any chance? I am a newbie and I am wondering how I can see help for things like cider's C-c C-j for instance given C-x C-c closes the buffer ๐Ÿ˜„ Trying to understand how to use which-key mostly ๐Ÿ™‚

AC 2021-01-19T01:33:25.038900Z

which-key kicks in after a pause when entering a prefix. hereโ€™s a example of marking a sexp (using my custom bindings) and then inserting it into the repl,

richiardiandrea 2021-01-19T01:38:30.039300Z

oh ok let me try that ๐Ÿ˜„

richiardiandrea 2021-01-19T01:42:35.039500Z

cause C-c C-j C-x does not trigger it but C-c C-x does enter in it with the cider-start-map

richiardiandrea 2021-01-19T01:43:12.039700Z

oh, this is magic, C-c C-j and I wait a little and now things appear ๐Ÿ˜„

richiardiandrea 2021-01-19T01:43:52.039900Z

thank you very much, you showed me the way ๐Ÿ˜„

AC 2021-01-19T01:46:58.040100Z

you can also configure the amount of delay with which-key-idle-delay. (the docs say you have to set it before starting which-key-mode)

๐Ÿ‘ 1
pez 2021-01-19T13:52:41.041900Z

So, in a lein-figwheel project, with cider-jack-in-cljs, I expect the piggieback middleware to be injected. But it isnโ€™t. Am I wrong expecting this? Or what could cause it to not be?

tvaughan 2021-01-19T14:27:52.042Z

In deps.edn:

:shadow {:extra-deps {binaryage/devtools {:mvn/version "1.0.2"}
                                 cider/cider-nrepl {:mvn/version "0.25.6"}
                                 cider/piggieback {:mvn/version "0.5.2"}
                                 refactor-nrepl/refactor-nrepl {:mvn/version "2.5.0"}
                                 thheller/shadow-cljs {:mvn/version "2.11.14"}}
                    :extra-paths ["test"]
                    :main-opts ["-m" "shadow.cljs.devtools.cli"]}
In shadow-cljs.edn:
:nrepl {:host "0.0.0.0"
         :port 5310
         :middleware [cider.nrepl/cider-middleware
                      cider.piggieback/wrap-cljs-repl
                      refactor-nrepl.middleware/wrap-refactor]}
I use cider-connect not cider-jack-in to use a cljs repl, so this may not be everything, but I'm assuming the problem is that piggieback isn't found on the classpath

tvaughan 2021-01-19T14:29:12.042200Z

Adjust accordingly for project.clj v deps.edn

dpsutton 2021-01-19T15:43:03.043Z

It always is for me. Open an issue with a repro?

pez 2021-01-19T16:55:21.047100Z

To clarify, the dependency is injected. But not the middleware. The middleware is added in a profile that I donโ€™t use ( :figwheel). So I was thinking maybe CIDER sees the middleware there and refrains from injecting it. This all was not happening on my machine, but on a clooagues, over screensharing, so I couldnโ€™t do the experiments that I would have done otherwise. And thus have too little context for a meaningful issue, I think.

pez 2021-01-19T16:56:37.047200Z

This is for jack-in so trying not to have those things specified in the project.