cli/doctor: warn if native JSON library is missing
This commit is contained in:
parent
ca7a18f3c6
commit
11be796c9b
1 changed files with 10 additions and 0 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue