practicalli / spacemacs

Content for the book - Clojure Development with Spacemacs
https://practical.li/spacemacs
Creative Commons Attribution Share Alike 4.0 International
109 stars 33 forks source link

Managing the REPL #262

Open practicalli-johnny opened 4 years ago

practicalli-johnny commented 4 years ago

Upddate The REPL section to explain starting and restarting the REPL or just its connection. How should this be used when adding a new dependency.

A REPL is an external process that can be started by the cider-jack-in-* functions. These functions also establish a connection to that running REPL.

cider-quit and sesman-quit will close kill the REPL process and close the connection (as does killing the Emacs REPL buffer).

cider-restart only restarts the connection to the repl. Evaluted code still resides in the REPL as its the same REPL and has not been cleared.

?? What is the value of cider-restart then? Only if there is a fault with the connection to the REPL?

sesman-restart will kill the REPL process and start a new one, connecting to the new REPL process when its started. This is what most expect.

When adding a new library dependency to a library, sesman-restart seems to be the appropriate command to be able to start using that library

https://metaredux.com/posts/2019/11/07/hard-cider-hard-restart.html