This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-26
Channels
- # announcements (3)
- # babashka (23)
- # beginners (54)
- # calva (9)
- # cider (8)
- # clj-kondo (18)
- # cljsrn (25)
- # clojure (69)
- # clojure-australia (1)
- # clojure-europe (7)
- # clojure-spec (13)
- # clojure-uk (1)
- # clojurescript (122)
- # conjure (8)
- # cursive (15)
- # defnpodcast (9)
- # deps-new (2)
- # emacs (22)
- # fulcro (10)
- # graalvm (36)
- # luminus (5)
- # meander (5)
- # minimallist (1)
- # observability (6)
- # off-topic (54)
- # reagent (8)
- # reitit (2)
- # releases (1)
- # reveal (25)
- # shadow-cljs (21)
- # tools-deps (50)
- # vrac (1)
- # xtdb (2)
Cider or sesman slows down emacs when typing: there are noticeable delays after some of the keystrokes. Seems to happen when I have one cider session open, but the current clojure buffer belongs to a different project without a session started. Here is the profile, seems like cider tries to determine the current session on every key press, which calls file-truename recursively a lot: https://gist.github.com/posobin/41f01d386e516bcc13431c8281fb10cb Should I file this as a bug? If so, to cider or sesman?
If using something like parinfer and Cider with aggressive indent I could see this situation arising as they continually fight against each other as you’re typing.
Parinfer is off.
Sorry I don't have any other ideas, I've never seen that kind of issue in the last five years (using Cider & Spacemacs). Maybe someone else has suggestions.
aggressive-indent-mode doesn't play nice with CIDER. If you disable it your problems will go away.
You can still file a bug with sesman, as there might be some opportunity to improve the session resolution but for me with big enough files aggressive-indent-mode was slow even for Emacs Lisp and Clojure files without CIDER, that's why I stopped using it a long time ago.
@U051BLM8F Do you call the command to reindent the file manually then?