Closed stuart-little closed 3 years ago
Thanks for the report, It seems related with lsp-dart, I'll take a look
@yyoncho I'm not sure that error is related with the warnings changes on lsp-dart, doesn't that is related to wrong byte-compiled packages? Or do we need to change anything on lsp-dart after the lsp-consistency-check merge?
We need to add (require 'lsp-mode)
at the top of the file (and theck if other files in the repo had that too). The issue is that in some cases lsp-lens.el might be byte-compiled without lsp-mode.el being loaded.
Well, I won't pretend I understand what sort of subtle out-of-order-compilation magic took place here, but for what it's worth, this made the error go away:
.elc
files from the lsp-mode
install:
find $HOME/.emacs.d/elpa/lsp-mode-20210530.1518/ -name *.elc |xargs rm
C-u 0 M-x byte-recompile-directory RET ~/.emacs.d/elpa/lsp-mode-20210530.1518
After that, restarting emacs
produces no error.
Ok, I got it... There isn't really something we can do here. This is package.el limitation. The issue is that lsp-lens.el is bytecompiled against old lsp-mode.el. FTR the proper way to upgrade any emacs package is to delete the package, restart emacs and then install it.
OK, well, I suppose I can live with this sort of sporadic breakage then.. I'd seen glimpses of it before: on other systems, also running emacs 27.2.50
(compiled in the same fashion from source), I
For some reason things happened in a different order on this system, and the error lingered. Anyway, package.el
is very useful in telling me I have such and such a list of packages to upgrade, upgrading them automatically, etc. I suppose one just has to deal with the fallout every one in a while (this is a rare occurrence..).
Anyway, thanks! I at least know what to do in the future.
Thank you for the bug report
lsp-mode
related packages.where
lsp-start-plain.el
can be downloaded here. Alternatively, it will be great if you can reproduce the issue using lsp-docker which provides the minimal configurations forlsp-mode
and ships with most of the language servers.Bug description
I am starting a newly-built
emacs 27.2.50
(cloned from the source) withlsp-mode
version20210530.1518
(the latest I can find withpackage-list-packages
).Steps to reproduce
Start
emacs 27
with the following init file:The error I receive:
That error goes away if I comment out the very last line,
Expected behavior
No such error.
Which Language Server did you use?
None of those, as far as I can tell (see the init file above).
OS
Linux
Error callstack
If I load the init file manually (by
eval
-ing(load <path-to-file>)
) I get the following trace: