This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-11
Channels
- # announcements (1)
- # beginners (35)
- # calva (28)
- # cider (14)
- # cljdoc (6)
- # cljs-dev (42)
- # cljsrn (2)
- # clojure (14)
- # clojure-spec (6)
- # clojure-uk (1)
- # clojurescript (13)
- # data-science (1)
- # emacs (3)
- # joker (3)
- # kaocha (1)
- # klipse (1)
- # leiningen (3)
- # off-topic (4)
- # pathom (10)
- # rewrite-clj (1)
- # shadow-cljs (28)
- # sql (5)
I want to change the location of a namespace from model.entry
to data.entry
When I update the require expression of a ns that requires valid-entries?
from model.entry
to data.entry
, CIDER complains
valid-entries? already refers to: #'mr-hankey.model.entry/valid-entries?
I understand that the var is redefined. But this is exactly what I want.Is there a way in CIDER to reload a namespace from scratch?
@jumar I mean removing all the vars and load the new ones in order to prevent the “already refers” error
I don't think there's out of the box support for that. You need to (remove-ns *ns*)
and reload the buffer.
Or you can use tools.namespace/refresh (perhaps via cider-ns-refresh
?)
seems to work @jumar. Thanks
That's probably some nice and easy feature to add by the way