cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
jmckitrick 2021-02-10T12:40:37.240400Z

If I'm in a cljs file buffer connected to cider, but there's no browser cljs runtime, is there a fallback autocomplete that would work statically?

dpsutton 2021-02-10T14:30:01.240600Z

Lsp

1
2021-02-10T20:53:58.242700Z

I am trying to figure out if the there is a deps.edn accessible hook to start a CIDER friendly nrepl with initialization evaluation (like leiningen injections) via clojure CLI.

2021-02-10T20:54:23.243200Z

Alex Miller posted this helpful guide to injection like behavior: https://insideclojure.org/2020/02/11/custom-repl/

2021-02-10T20:55:41.244200Z

But I am having difficulty figuring out how to do this and combine it with the nrepl middleware CIDER depends upon:

2021-02-10T20:55:50.244700Z

:cider {:extra-deps {nrepl/nrepl {:mvn/version "0.7.0"}
                               refactor-nrepl {:mvn/version "2.5.0"}
                               cider/cider-nrepl {:mvn/version "0.25.1"}}
                   :main-opts ["-m" "nrepl.cmdline"
                               "--middleware" "[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}

2021-02-10T20:58:06.246800Z

Is there some facility within nrepl.cmdline to provide an eval hook? Or am I just missing how to combine what Alex suggests with nrepl.cmdline? They seem mutually exclusive to me and don't work through alias chaining, as only the last clojure.main code will be evaluated.