emacs 2025-11-03

Hello emacs friends, i'm plagued by this error, which may or may not be a red herring as to why other things aren't working:

error in process filter: run-hooks: Symbol's function definition is void: company-mode
error in process filter: Symbol's function definition is void: company-mode
What does this imply to you?

My only solid lead is that my spacemacs configuration contains this:

(auto-completion :variables
                      ;;auto-completion-front-end 'company
                      auto-completion-enable-help-tooltip t
                      auto-completion-enable-snippets-in-popup t
                      auto-completion-enable-sort-by-usage t
                      ;; should this be 0?
                      auto-completion-idle-delay 1
                      auto-completion-minimum-prefix-length 2
                      auto-completion-complete-with-key-sequence "fd")
And company-mode, "might be" (according to some sources) what spacemacs uses to provide that auto-completion layer.

chatgpt thinks if i comment in auto-completion-front-end and change it to 'corfu it might fix it. I guess ill give that a go as it's better then my current plan of yelling at the moon.

I made that change and now when i run cider-jack-in-clj-&-cljs (one of the many commands that prompted the above error) it does actual jack in and i get these messages:

LSP :: clojure-lsp:562542 initialized successfully in folders: (/home/drewverlee/sig/pyregence)
LSP :: Unable to autoconfigure company-mode. [2 times]
So whats the relationship between LSP and company-mode? Why is it trying to configure it? Why doesn't it install company-mode, if it needs it?

> LSP :: Unable to autoconfigure company-mode. https://github.com/emacs-lsp/lsp-mode/blob/7fcd17e7d8a06e9943dde059bb940ae80e3974fc/lsp-completion.el#L913-L921 is the check lsp-mode does, can you check what's the value of lsp-completion-provider ?

👀 1

the value is :capf

looks correct, hum

ill give it a restart...

so the only explanation is (fboundp 'company-mode) is returning nil, like company is not really installed

yes that returns nil. Maybe spacemacs dropped company? What do you recommend? I believe i was using company before, and was happily unaware of all it effected. I'm fine to use whatever atm. After a restart i still get that LSP :: Unable to autoconfigure company-mode. [4 times] message.

corfu is the best IMO

I used company for years and swtiched to corfu because doom is moving too

and has indeed less issues and it's faster

Sure, thanks! why is lsp unable to configure company-mode, why is it trying to? do i need to set something?

about the LSP warn, I'd say it's byte compilation issues

❤️ 1

i'll do nothing then! my favorite plan. 🙂

haha you could try to re byte compile, but I'd be best to replace with corfu, https://github.com/ericdallo/dotfiles/blob/master/.config/doom/config.el#L90-L95in case you wanna some day, of course there are doom-emacs defaults behind it

While i have you here, my lsp completions often time seem to show duplicates (see picture), is that normal?

nope, that's strange

yep. this has been going on for at least a year for me, i just look past it.

maybe try disable LSP cache to confirm it's not a lsp-mode issue:

(setq lsp-completion-no-cache t)

👍 1