mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
cli/doctor: warn if native JSON library is missing
This commit is contained in:
@ -59,6 +59,16 @@ in."
|
|||||||
"typically installed. If you're seeing a vanilla Emacs splash screen, this "
|
"typically installed. If you're seeing a vanilla Emacs splash screen, this "
|
||||||
"may explain why. If you use Chemacs, you may ignore this warning."))
|
"may explain why. If you use Chemacs, you may ignore this warning."))
|
||||||
|
|
||||||
|
(when EMACS27+
|
||||||
|
(print! (start "Checking for great Emacs features..."))
|
||||||
|
(unless (and (functionp 'json-serialize)
|
||||||
|
(string-match-p "\\<_JSON\\_>" system-configuration-features))
|
||||||
|
(warn! "Emacs was not built with native JSON support")
|
||||||
|
(explain! "Users will see a substantial performance gain by building Emacs with "
|
||||||
|
"jansson support (i.e. a native JSON library), particularly LSP users. "
|
||||||
|
"You must install a prebuilt Emacs binary with this included, or compile "
|
||||||
|
"Emacs with the --with-json option.")))
|
||||||
|
|
||||||
(print! (start "Checking for private config conflicts..."))
|
(print! (start "Checking for private config conflicts..."))
|
||||||
(let ((xdg-dir (concat (or (getenv "XDG_CONFIG_HOME")
|
(let ((xdg-dir (concat (or (getenv "XDG_CONFIG_HOME")
|
||||||
"~/.config")
|
"~/.config")
|
||||||
|
Reference in New Issue
Block a user