-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Load all files (clj, cljc, & cljs) on cider-load-all-files
.
#2558
Conversation
Shouldn't what we load here be based on the current REPL or file context? I guess running the command would surprise someone running it from a cljs repl or a cljs file. I don't get the part about cljc code getting evaluated in all cljs repls. That definitely doesn't sound like the right or desired behaviour to me. I recall in the past we were doing some magic to load cljc files in both clj and cljs repls, but given those were often out of sync I think we agreed that it doesn't make sense to automatically try to load cljc files in this manner. |
"All" means clj, cljc, and cljs.
Thanks for the fast reply. My primary concern was that topic:
|
cider-load-all-files
.cider-load-all-files
.
I tested 75a683f manually with
Two very minor and harmless effects:
Ready. |
Thanks for working on this! I really appreciate it! 🙇
Probably we should take some time to address those, but I agree that's not a big deal. |
Thanks, and I really appreciate that you maintain many great Clojure tools! |
#1983 adds
cider-load-all-files
; the current pull request touches it up to include cljc files in addition to clj files.There's a larger discussion on ClojureScript repls, especially since loading cljc will eval in all active cljs repls. But cljc is needed in order to load "all files" in a Clojure repl. Before the current pull request,
cider-load-all-files
is incomplete for clj repls. If this proposed change does not have consensus, then let's discuss options tocider-load-all-files
or variations forclj
/clj+cljc
/cljs+cljc
.Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):
make test
)make lint
) which is based onelisp-lint
and includescheckdoc
, check-declare, packaging metadata, indentation, and trailing whitespace checks.Thanks!
If you're just starting out to hack on CIDER you might find this section of its
manual extremely useful.