This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-09
Channels
- # announcements (5)
- # babashka (1)
- # beginners (116)
- # calva (139)
- # cider (11)
- # clara (2)
- # clj-kondo (13)
- # clojure (247)
- # clojure-dev (18)
- # clojure-europe (5)
- # clojure-france (2)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-spec (24)
- # clojure-uk (34)
- # clojurescript (41)
- # cursive (11)
- # data-science (2)
- # datomic (33)
- # emacs (10)
- # events (3)
- # fulcro (134)
- # graphql (9)
- # jackdaw (3)
- # jobs (1)
- # joker (20)
- # kaocha (3)
- # leiningen (7)
- # luminus (2)
- # malli (3)
- # music (1)
- # pedestal (7)
- # re-frame (25)
- # remote-jobs (7)
- # ring (7)
- # shadow-cljs (85)
- # spacemacs (13)
- # testing (2)
- # tools-deps (60)
- # xtdb (11)
- # yada (7)
@dominicm @borkdude I got a step further with the problem I described above. All my problems went away when I removed clj-refactor from my setup. But now I want clj-refactor back 😕
In big projects, the ast warming may still be happening as you are doing things, making 💥
haha, just reading about https://github.com/clojure-emacs/refactor-nrepl#warm-ast-cache
oh… shoot… seems I already asked this question and I already have it in my config:
(defun cider-fully-qualified-symbol-at-point (args)
(interactive "P")
(let ((s (cider-interactive-eval (concat "`(" (cider-symbol-at-point t) ")"))))
(kill-new s)
(message s)))
😎 4
Okay, I did a bit of digging and made one that works:
(defun cider-fully-qualified-symbol-at-point ()
(interactive)
(let ((cb (lambda (x)
(when-let ((v (nrepl-dict-get x "value"))
(s (replace-regexp-in-string "[()]" "" v)))
(kill-new s)
(message s)))))
(cider-interactive-eval
(concat "`(" (cider-symbol-at-point t) ")")
cb)))
updated it: apparently quoting is better than using resolve
- that way it works for keywords as well👍 4