LSP :: Connected to [rust-analyzer:23366/starting /home/ghost/termusic]. LSP :: invalid config value: /cargo/extraEnv: invalid type: sequence, expected a map; LSP :: rust-analyzer:23366 initialized successfully in folders: (/home/ghost/termusic) LSP :: invalid config value: /cargo/extraEnv: invalid type: sequence, expected a map; LSP :: invalid config value: /cargo/extraEnv: invalid type: sequence, expected a map; LSP :: Error from the Language Server: content modified (Unknown error)
似乎是rust-analyzer那边的更新导致了lsp-mode的配置出了什么问题?
这是我的rust相关配置:
;;rust language
(use-package rust-mode
:ensure t
:functions dap-register-debug-template
:bind
("C-c C-c" . rust-run)
:hook
(rust-mode . lsp-deferred)
:config
;; debug
(require 'dap-gdb-lldb)
(dap-register-debug-template "Rust::LLDB Run Configuration"
(list :type "lldb"
:request "launch"
:name "rust-lldb::Run"
:gdbpath "rust-lldb"
:target nil
:cwd nil)))
(use-package cargo
:ensure t
:hook
(rust-mode . cargo-minor-mode))