emacs

Drew Verlee 2025-11-03T22:09:54.190129Z

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?

Drew Verlee 2025-11-03T22:12:48.999989Z

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.

Drew Verlee 2025-11-03T22:15:39.677039Z

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.

Drew Verlee 2025-11-03T22:17:48.192389Z

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?

ericdallo 2025-11-03T22:23:54.107799Z

> 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
Drew Verlee 2025-11-03T22:25:02.112039Z

the value is :capf

ericdallo 2025-11-03T22:25:13.626369Z

looks correct, hum

Drew Verlee 2025-11-03T22:25:37.554259Z

ill give it a restart...

ericdallo 2025-11-03T22:25:46.424539Z

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

Drew Verlee 2025-11-03T22:28:03.993929Z

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.

ericdallo 2025-11-03T22:28:37.574589Z

corfu is the best IMO

ericdallo 2025-11-03T22:28:52.094089Z

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

ericdallo 2025-11-03T22:29:04.545499Z

and has indeed less issues and it's faster

Drew Verlee 2025-11-03T22:29:20.147369Z

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

ericdallo 2025-11-03T22:29:23.201019Z

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

❤️ 1
Drew Verlee 2025-11-03T22:30:19.930139Z

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

ericdallo 2025-11-03T22:31:28.034579Z

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

Drew Verlee 2025-11-03T22:32:05.843989Z

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

ericdallo 2025-11-03T22:32:42.369639Z

nope, that's strange

Drew Verlee 2025-11-03T22:38:34.990939Z

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

ericdallo 2025-11-03T22:40:42.794459Z

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

(setq lsp-completion-no-cache t)

👍 1