-
Notifications
You must be signed in to change notification settings - Fork 176
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
fix reload-all and test #854
Conversation
@@ -37,7 +37,7 @@ | |||
reload (user-reload 'reload reload/reload) | |||
unload (user-reload 'unload reload/unload)] | |||
(cond | |||
(:all msg) (reload (assoc opts :all true)) | |||
(:all msg) (reload (assoc opts :only :all)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the correct option to reload everything: https://github.com/tonsky/clj-reload?tab=readme-ov-file#usage-choose-what-to-reload
(let [response (session/message {:op "cider.clj-reload/reload-all"}) | ||
progress-str (:progress response)] | ||
(is (str/includes? progress-str "Unloading cider.nrepl.middleware.util.meta-test")) | ||
(is (str/includes? progress-str "Loading cider.nrepl.middleware.util.meta-test")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making sure things are being force reloaded.
cd64093
to
baa98c1
Compare
I see some failing but they seem like a connectivity issue when testing against clojure 1.12?
|
Thanks! While we're here, please replicate the
It is ok to make some defn in |
done |
You're fast! Please update the changelog and it's ready to merge |
I'm not sure I like introducing dependencies between middlewares, so I'd rather extract the functions they need to share out of the |
I already responded above, but I think that's a bad approach, so let's not do it. I'd prefer to move the code to some shared util-type namespace. |
50482b2
to
baa98c1
Compare
@vemv I think it's better if you move this code yourself. Like I said in the other PR, I wasn't really aiming to add this functionality in the first place, and now it will involve some non trivial code refactor that I think will be subject to more back and forth. I really don't want to go into a 4th weekend working on this. |
Removed the commit that was adding functionality and left just the code fix and test for reload-all. |
@filipesilva That's completely fair. Just remove this change from the PR and we're good to go. |
Don't forget to mention the bug-fix here https://github.com/clojure-emacs/cider-nrepl/blob/master/CHANGELOG.md |
baa98c1
to
e2fba5d
Compare
Ah right, I forgot that bit. Added now. |
We'll cut a new release with your fix soon. |
Before submitting a PR make sure the following things have been done:
cider.nrepl
ns which has all middleware documentation.lein docs
afterwards, and commit the results.Note: If you're just starting out to hack on
cider-nrepl
you might findnREPL's documentation and the
"Design" section of the README extremely useful.*
Thanks!