This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-24
Channels
- # admin-announcements (2)
- # beginners (46)
- # boot (8)
- # cider (29)
- # cljs-dev (45)
- # cljsjs (10)
- # cljsrn (13)
- # clojure (60)
- # clojure-dev (5)
- # clojure-greece (1)
- # clojure-ireland (4)
- # clojure-mexico (6)
- # clojure-poland (3)
- # clojure-quebec (3)
- # clojure-russia (8)
- # clojure-spec (89)
- # clojure-uk (70)
- # clojurescript (84)
- # cursive (4)
- # datomic (7)
- # devcards (1)
- # dirac (2)
- # emacs (11)
- # hispano (10)
- # jobs (13)
- # keechma (34)
- # lein-figwheel (4)
- # luminus (19)
- # off-topic (2)
- # om (78)
- # onyx (6)
- # parinfer (1)
- # planck (82)
- # proton (2)
- # re-frame (10)
- # reagent (23)
- # ring-swagger (5)
- # spacemacs (2)
- # specter (24)
- # spirituality-ethics (122)
- # untangled (13)
@benedek i'll give that a go, thank you!
it looks like that was it!!
well, that fixes that problem. i've got a new problem:
ERROR: Unhandled REPL handler exception processing message {:op clean-ns, :prefix-rewriting false, :debug false, :path [], :libspec-whitelist [^cljsns ^slingshot.test ^monger.joda-time ^monger.json], :prune-ns-form true, :session a8d7a0bb-203e-4372-84fb-4cbc40cd80af, :id 14}
java.lang.AssertionError: Assert failed: (seq path)
at refactor_nrepl.ns.clean_ns$clean_ns.invokeStatic(clean_ns.clj:38)
i'll put refactor-nrepl src in my classpath and instrument and see what could be going wrongi'll share news soon 🙂
@benedek, both path
and (buffer-file-name)
are null here https://github.com/clojure-emacs/clj-refactor.el/blob/master/clj-refactor.el#L2652 when i have when
instead of unless
here https://github.com/clojure-emacs/clj-refactor.el/blob/master/clj-refactor.el#L2649
is it normal that clj-refactor wants to analyze the project every time i do find-usages ?
you can set (setq cljr-warn-on-eval nil)
so it won’t ask you but analyze in the background
so next time it analyzes it should not take long as it only builds ASTs for changed files
so to summarize: yes, but it should just use the already cached ASTs for most (not changed) namespaces
Is there any way to tell clj-refactor to exclude a specific directory (eg. test) when it tries to analyse all the files ?
alright. we have some custom readers in a project, and they’re referenced in some test files. clj-refactor is not able to parse that
so clj-refactor will ignore errors in those ns-s and carry on with find-usages/rename symbol
@benedek: well, i'm running project-clean, where the file isn't in a buffer. with-temp-file, remember
or, otherwise, i don't understand enough about this to know what i'm talking about 🙂