lsp 链接出错

欧拉系统。自带的emacs 29.4。打开c语言的项目后,用lsp跳转代码,无法跳转:

Loading /root/.emacs.d/recentf...done
Cleaning up the recentf list...done (0 removed)
[yas] Prepared just-in-time loading of snippets successfully.
Turn on helm-projectile key bindings
Turning on magit-auto-revert-mode...done
For information about GNU Emacs and the GNU system, type C-h C-a.
(Shell command succeeded with no output) [4 times]
LSP :: Sending to process failed with the following error: Symbol’s function definition is void: json-serialize
LSP :: Connected to [clangd:26483/starting /root/usps].
(Shell command succeeded with no output) [3 times]
Quit
(Shell command succeeded with no output) [4 times]
Mark set
Quit
When done with this frame, type C-x 5 0
(Shell command succeeded with no output) [5 times]
M-g C-g is undefined
(Shell command succeeded with no output) [13 times]
imenu-unavailable-error: In ‘Workspace symbol’ source: ‘#[0 	\203

同样的配置,同样的emacs版本,在其他系统中没问题。请问这是缺少什么工具么?

显然你这 Emacs 编译时没开 JSON 支持,Emacs 29 需要 jansson 库。

29.3我也是编译安装的。没发现这个问题。30也没这个问题。

回头我试试开json

30 开始不需要 jansson

多谢。看到你这个回复之后。我突然模糊想起来之前在哪儿看到过了。。。但当时没想起来。服了。