Closed pdewacht closed 3 years ago
I just installed prelude and have the same problem. It seems company-lsp is not on MELPA at the moment.
I have opened an issue with company-lsp: https://github.com/tigersoldier/company-lsp/issues/147
As a workaround:
Create a file ~/.emacs.d/personal/preload/straight-use-package.el
:
This will install straight.el and then will use straight to install company-lsp
from their github repo.
(setq package-enable-at-startup nil)
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package '(company-lsp :type git :host github :repo "tigersoldier/company-lsp"))
Modify ~/.emacs.d/modules/prelude-lsp.el
Comment out company-lsp
(prelude-require-packages '(;company-lsp
lsp-mode
lsp-ui))
I'm still quite new to emacs, but as far as I understand this will install company-lsp
before prelude loads, and will make it availabe to prelude. It will also prevent prelude from trying to get it from MELPA, where it's not available at the moment.
FYI - seems this package was deprecated and removed from MELPA (https://github.com/melpa/melpa/issues/7461)
I just installed prelude, using the installer script. I started emacs with no further configuration and I got this error.
Steps to reproduce the problem
Environment & Version information
Emacs version
GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.16.0) of 2020-11-08, modified by Debian
Operating system
Debian unstable, emacs package version 1:27.1+1-3