This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (1)
- # beginners (6)
- # calva (23)
- # cider (43)
- # clj-kondo (2)
- # cljdoc (22)
- # cljsrn (4)
- # clojure (35)
- # clojure-dev (1)
- # clojure-france (1)
- # clojure-italy (16)
- # clojure-uk (10)
- # clojurescript (1)
- # data-science (1)
- # emacs (6)
- # fulcro (5)
- # graalvm (4)
- # jobs-discuss (28)
- # off-topic (29)
- # pedestal (11)
- # planck (31)
- # prelude (1)
- # reitit (2)
- # vim (1)
would it be an idea for CIDER to remove a var from the namespace when you actually delete it from your buffer?
oh the beauty of repl based tooling.. would not be really intuitive as
foo does not magically appear in your repl when you type the defn form either..
That’s handy, thanks. I would like to see this coupled with actually deleting something like
(defn foo ) from the buffer somehow
cider-undef-delete-defn seems like it would be useful and not to hard to add maybe?
looking at the
cider-undef code it seems to send an
undef op for a specifc
symbol via nrepl.
I wonder if its as simple as just sending an
ns to unload everything from that
I guess you can manually do the unmap, but it would be nice if CIDER has something more ergonomic for this? like select a form and delete it via a special CIDER function that also unmaps the var
suppose once you have that easy to remap keys. no idea how would you go about asking ppl if they liked this as default for the most used (guessing here too) cider feature
and not break the current behavior, although I don’t know why you would have it any other way.
wanna file a feature request @borkdude? i am not volunteering necessarily but feels like a good idea
I made a poll here to see how people feel about it: https://twitter.com/borkdude/status/1132307547468238848
one disadvantage would be that if you have some vars in a comment, they would be gone after the reload
can't you end up with types with the same string name but are different under the hood?
it seems there is also
cider-ns-reload-all, maybe there should be a variant named
cider-ns-reset which does this behavior
or maybe there is: https://github.com/clojure-emacs/cider/blob/master/doc/miscellaneous_features.md#reloading-code I have to read this carefully, but now I’m afk for cooking dinner 🙂
it tries to (re)load namespaces that are in my test directory, that need deps I haven’t loaded in my REPL, so it crashes 😕
what I would need is a more fine-grained behavior than “try to reload all namespaces you can find”, just the current one
same here, I tend to have lots of scratch files in a dev folder acting like a persistent REPL history / ad hoc tests