cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Gleb Posobin 2020-09-26T18:23:27.031900Z

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?

practicalli-john 2020-09-27T20:19:02.035700Z

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.

Gleb Posobin 2020-09-27T21:30:25.036100Z

Parinfer is off.

practicalli-john 2020-09-27T23:11:29.036400Z

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.

bozhidar 2020-09-30T06:59:08.068900Z

aggressive-indent-mode doesn't play nice with CIDER. If you disable it your problems will go away.

bozhidar 2020-09-30T07:00:50.069100Z

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.

Gleb Posobin 2020-09-30T13:49:11.070700Z

@bozhidar Do you call the command to reindent the file manually then?

bozhidar 2020-10-01T20:31:14.077300Z

Infrequently. I tend to press TAB a lot. 🙂