This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-05
Channels
- # announcements (23)
- # babashka (23)
- # beginners (48)
- # calva (41)
- # clj-kondo (41)
- # cljs-dev (75)
- # cljsrn (5)
- # clojure (85)
- # clojure-europe (46)
- # clojure-nl (2)
- # clojure-spec (70)
- # clojure-uk (4)
- # clojurescript (52)
- # core-async (2)
- # cursive (16)
- # datahike (2)
- # datomic (4)
- # emacs (15)
- # figwheel-main (2)
- # fulcro (5)
- # gratitude (5)
- # helix (14)
- # introduce-yourself (2)
- # jackdaw (13)
- # keyboards (2)
- # lsp (8)
- # luminus (5)
- # malli (3)
- # meander (12)
- # nextjournal (52)
- # off-topic (19)
- # other-languages (1)
- # overtone (3)
- # pathom (4)
- # podcasts-discuss (1)
- # re-frame (6)
- # reitit (1)
- # releases (2)
- # ring (3)
- # sci (22)
- # shadow-cljs (3)
- # specter (1)
- # testing (3)
- # tools-deps (100)
- # uncomplicate (2)
has anyone else had issues with emacs completely freezing sometimes when viewing .cljc
files? Happens to me perhaps once or twice a week. Any ideas on how to debug this would be appreciated 🙂
GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-08-06
CIDER 1.2.0snapshot (package:
lsp-mode
+ clojure-lsp 2021.11.02-15.24.47
M-x debug-on-quit
and C-g whenever it's freezing?
There's also a nice profiler apparently
n.b., afacit there isn't an official doc laying out how cider and clojure-lsp should play together in emacs. It doesn't seem trivial that they overlap here and there, and they keep changing. a cider-nrepl + lsp combo is nicely done/curated in Calva, so it's not something impossible or complex. But if you're gonna roll it yourself... here be dragons 🐉
if you need inspiration: https://github.com/mpenet/emax/blob/master/init.el#L475-L507
also the conf from @UKFSJSM38 might be of interest: https://github.com/ericdallo/dotfiles/blob/master/.doom.d/config.el
when this problem occurs I can't get emacs to react to anything (well, except for kill -9
), even C-g so I'm not sure if debug-on-quit
will help. But I'll check it out, thanks
you can send instead kill -USR2
to trigger a quit
if you had set debug-on-quit beforehand, you'll get a stacktrace of w/e was keeping emacs busy at that moment
good to know. one thing that might complicate things is that when my emacs freezes it isn't consuming a lot of cpu. so it doesn't look like a typical case of a thread stuck in a loop
I had a very similar thing happen but it was specifically when using ^:
for metadata tags. Never figured out why but profiling etc seemed to point to syntax highlighting