Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service Reloaded REPL #113

Open
practicalli-johnny opened this issue Nov 26, 2022 · 0 comments
Open

Service Reloaded REPL #113

practicalli-johnny opened this issue Nov 26, 2022 · 0 comments

Comments

@practicalli-johnny
Copy link
Contributor

practicalli-johnny commented Nov 26, 2022

General

https://github.com/stuartsierra/reloaded

Reloading in Cider

https://docs.cider.mx/cider/usage/misc_features.html#reloading-code

Reload in Conjure

There's already hooks into tools.namespace.reload which does exactly this but automatically, I use it a lot.
Mappings
https://github.com/Olical/conjure/blob/839fe23a7746f03aa9ef1ebf087501cd6126cf0f/doc/conjure-client-clojure-nrepl.txt#L424-L432
Config
https://github.com/Olical/conjure/blob/839fe23a7746f03aa9ef1ebf087501cd6126cf0f/doc/conjure-client-clojure-nrepl.txt#L264-L280

Olical config to reload my code and then restart my system through mount:

(tset vim.g :conjure#relative_file_root (vim.fn.getcwd))
(tset vim.g :conjure#client#clojure#nrepl#refresh#dirs ["src"])
(tset vim.g :conjure#client#clojure#nrepl#refresh#before "mount.core/stop")
(tset vim.g :conjure#client#clojure#nrepl#refresh#after "mount.core/start")

discord message to help explain Olical workflow https://discord.com/channels/732957595249410108/732963293328834620/1044937386016112691

Reloading specific directory trees

set-refresh-dirs to specify directories to view when using tools.namespace.refresh/refresh - useful for excluding clojure files in dev or develop that are not part of the main service or still in development (even if they are on the class path)

https://ask.clojure.org/index.php/10277/preventing-clojure-namespace-refresh-loading-namespaces

@practicalli-johnny practicalli-johnny changed the title Integrant and Integrant REPL Reloaded REPL Nov 26, 2022
@practicalli-johnny practicalli-johnny moved this from Todo to In Progress in Practicalli TODO Feb 3, 2023
@practicalli-johnny practicalli-johnny changed the title Reloaded REPL Service Reloaded REPL Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant