Closed limar63 closed 3 years ago
this is a well-known issue - you have to upgrade your dash
package version(and in general, it is good to update all your packages when you install a new one)..
this is a well-known issue - you have to upgrade your
dash
package version(and in general, it is good to update all your packages when you install a new one)..
Hmm, I don't have one installed in my emacs at all, gonna install and check how it will work. It wasn't required to do in installation and it wasn't grabbed as a part of dependencies.
Yes, it actually worked. Is this common knowledge that 99.9% people using emacs know about dash and I managed to dodge the mention of it, or it is missed in the emacs metals installation guide and should be added to the guide?
I don't quite understand the question - on lsp-mode side, we have pinned issue for that problem.
You are right, sorry, I am not that experienced with using public GitHub pages and finding solutions there. And also the error message in emacs debug is very verbose, wasn't sure which part of the error I am supposed to google.
No worries. Unfortunately, there is no way to force updating the dependencies due to melpa limitation.
I will try to contact people supporting the emacs-metals guide section to mention the dash
requirement
dash version is a requirement and it is automatically installed when you install lsp-mode. The issue here is that you already had old version of dash package and when you install lsp-mode and that version was incompatible with lsp-mode.
It was mentioned as "available" on package-list-packages
, which, if I understand correctly, means that it is not installed, not that it is not updated, or I am wrong?
dash is present 2 times in package-list-packages on my side - from elpa and melpa, one of them will be in state available.
My current emacs version is 27.2, OS is Ubuntu 20.04,Java version is 11.0.11.
I was following the official guide of installing metals on emacs, did a little change from the course at the start (I first installed required packages/dependencies through
M-x package-list-packages
and only then did what was going on on the guide, but from my understanding, it shouldn't matter. My currentinit.el
file contains the code related tolsp-mode
:without the first part of adding
melpa
, since I got it added already. After doing everything and restarting the Emacs, I proceeded with opening .scala file and on open I get a debug message:I can try to open the .scala file again and it will be opened, but upon trying to activate
lsp-mode
, it will tell[Disabled]
and a bunch of other errors about not having a connection to the server. And according to the debug message, I am supposed to have some kind ofindex.sqlite
inside my.emacs.d
folder, but I don't have one, and creating one didn't help. I also followed the alternative LSP server listed there, the "Eglot", and it worked fine, but upon switching back tolsp-mode
variant, it was still giving the same error. Any idea how to start debugging this mess? I tried to manually install metals, tried shenanigans with a "coursier", nothing helped.