This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-01
Channels
- # babashka (2)
- # beginners (45)
- # calva (2)
- # cider (20)
- # clj-kondo (9)
- # cljsrn (1)
- # clojure (25)
- # clojure-europe (7)
- # clojure-nl (24)
- # clojure-spec (4)
- # clojure-uk (3)
- # clojurescript (16)
- # datahike (6)
- # datalevin (6)
- # emacs (35)
- # fulcro (3)
- # holy-lambda (1)
- # lsp (55)
- # nrepl (2)
- # off-topic (17)
- # spacemacs (11)
- # specter (1)
- # xtdb (3)
Hello, getting this error on doom emacs after https://github.com/clojure-emacs/cider/commit/b07208f2979483b95606e1fd10f650a8104004ee#diff-cd4560794fb599bec6ef532b196acbf5a5a873c985a547dd0bb70289ce70250cL119-R114:
(error "ad-deactivate: 'enable-theme' is not advised")
any clues?
i have no idea... i'll google around a minute or two.
Is there some problem your seeing? It could just be system just being overly chaty.
it makes doom-emacs doesn't start, my guess is that it's a elisp issue indeed on cider
That's an issue for sure.
maybe this line should not be removed? https://github.com/clojure-emacs/cider/commit/b07208f2979483b95606e1fd10f650a8104004ee#diff-cd4560794fb599bec6ef532b196acbf5a5a873c985a547dd0bb70289ce70250cL119
not sure, maybe @U051BLM8F will know better
yep, i'm guessing the line you linked is the top stack. maybe the cider-scale-background color shouldn't be set to nil there? Hard for me to say.
(setq cider-docview-code-background nil)
> it makes doom-emacs doesn't start, my guess is that it's a elisp issue indeed on cider Perhaps there's something in Doom's code related this advice? The change made to CIDER's code should be more or less equivalent to what was done before. (the code was just updated to follow the modern Emacs advice conventions)
At any rate - please file a ticket about this, so we won't forget to explore it more more details.
Out of the box CIDER still works fine, so I'm inclined to believe that the problem is some combination of the code in Doom + CIDER.
Yeah, the problem is here https://github.com/hlissner/doom-emacs/blob/f18a8ad10984162ae178a3dbd83604cfbeac1b07/modules/lang/clojure/config.el#L239
Generally I don't even remember why we had advised this in the first place, but I'm 100% this code is causing your breakage.
Btw, I've noticed that the Doom configuration for CIDER is huge and they are doing some questionable things here and there (e.g. redirecting everything from the nrepl-server buffer to the REPL, given there's a middleware that redirects everything that you'd really want redirected)
@U051BLM8F thanks for the help, I'm almost sure that code is outdated and people maybe don't know about this middleware or is not the default or easy to setup for some reason(?)
Not a big deal. I guess the main concern they had were any potential errors during server startup, as those go to the server buffer (although something should be displayed in the minibuffer as well). Not a big deal, I was just a bit concerned they might end up patching something just because they don't quite understand it.
i get this error File mode specification error: (file-missing Cannot open load file No such file or directory cider-compat)
when i run cider-jack-in-cljs in a .cljc file.
I tried looking for this cider-compat and it appears here https://github.com/clojure-emacs/helm-cider/blob/master/helm-cider-spec.el