啓動 spacemacs 時報錯,*messages*
消息:
(Spacemacs) --> refreshing package archive: gnu... [3/3]
Contacting host: elpa.gnu.org:443
Importing package-keyring.gpg...done
Package refresh done
(Spacemacs) --> installing package: lsp-mode@my-code... [1/1]
(Spacemacs) Warning: Cannot install package lsp-mode.
You appear to be setting environment variables ("GOPATH" "PATH") in your .bashrc or .zshrc: those files are only read by interactive shells, so you should instead set environment variables in startup files like .profile, .bash_profile or .zshenv. Refer to your shell’s man page for more info. Customize ‘exec-path-from-shell-arguments’ to remove "-i" when done, or disable ‘exec-path-from-shell-check-startup-files’ to disable this message.
Unable to activate package ‘company-lsp’.
Required package ‘lsp-mode-3.4’ is unavailable
Unable to activate package ‘lsp-haskell’.
Required package ‘lsp-mode-3.0’ is unavailable
Unable to activate package ‘lsp-rust’.
Required package ‘lsp-mode-3.0’ is unavailable
我的配置 https://github.com/MaskRay/Config/blob/master/home/.emacs.d/private/%2Bmy/my-code/packages.el#L10 中指定 lsp-mode 和 lsp-ui 爲 local
% tree
.
├── my
│ ├── config.el
│ └── layers.el
├── my-code
│ ├── config.el
│ ├── funcs.el
│ ├── local
│ │ ├── lsp-mode -> ../../../../../../../Dev/Emacs/lsp-mode
│ │ └── lsp-ui -> ../../../../../../../Dev/Emacs/lsp-ui
│ └── packages.el
└── my-cquery
├── config.el
├── funcs.el
├── local
│ └── cquery -> ../../../../../../../Dev/Emacs/emacs-cquery
└── packages.el
這幾個 symlinks 都是指向本地 git repo 的,不知道爲什麼 company-lsp 報錯;lsp-rust lsp-haskell cquery 這些依賴的版本號是不是也有問題?lsp-mode 3.0 3.4 是不存在的?