Loading dape-mode in daemon mode fails with: Symbol’s value as variable is void: gdb-threads-font-lock-keywords
I'm using an emacs in daemon mode, built from master, currently at
GNU Emacs 31.0.50
Development version e05f76667d5e on master branch; build date 2025-05-17.
dape-mode is loaded with the use-package snippet provided in the docs, nothing special.
emacs daemon fails to start with the message:
Symbol’s value as variable is void: gdb-threads-font-lock-keywords
Strangely enough, in package-isolate mode, if I isolate emacs to dape, dape loads fine. If I evaluate use-package after the daemon has been loaded, it evaluates fine. The only thing that helps is to define the variable before the (use-package dape) portion of the config (defaulting it to the value from gdb-mi.el). Using :after (gdb-mi) in use-package has no effect.
What could be the case?..
Hello and thank you for your bug report.
This is very strange, I am not sure why this is happening. Does the isse happen when you start eamcs normaly?