Open royalaid opened 8 years ago
Hmm, I don't use Emacs myself, but I would've expected that adding REPL middleware in project.clj
under the :nrepl-middleware
key would work.
Simple workaround, just copy pasted the cider-jack-in
command and ran that :smile:
lein update-in :dependencies conj "[org.clojure/tools.nrepl "0.2.12\"]" --
update-in :plugins conj "[refactor-nrepl \"2.3.0-SNAPSHOT\"]" --
update-in :plugins conj "[cider/cider-nrepl \"0.13.0-SNAPSHOT\"]" --
repl :headless :port 7000
Slight downside is the command will have to be updated each time cider updates its deps but that is no big deal.
Then to start the app its just (best-app.core/start-app "")
I noticed I put the :nrepl-port
in the dev/config.edn
which I am guessing may have messed with the repl server.
Ah good to hear you found a workaround. The :nrepl-port
makes the app start nREPL when specified. So, if you're already using that port that could be a problem. If you omit it, then the app won't try to start the nREPL.
I am currently trying to run Luminus in a vagrant box which requires me to use
cider-connect
to allow cider to access the repl session within the box. I am just curious where I am supposed to include the middleware for cider and clj-refactor. I have tired the usual locations,profiles.clj
andproject.clj
but it seems to be to no avail. Any advice would be much appreciated.