GNU bug report logs -
#61312
Patch for eglot: scala LSP binary name
Previous Next
Reported by: skykanin <skykanin <at> proton.me>
Date: Mon, 6 Feb 2023 05:52:02 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Thu, 09 Feb 2023 12:18:12 +0200
with message-id <83bkm3m9az.fsf <at> gnu.org>
and subject line Re: bug#61312: Patch for eglot: scala LSP binary name
has caused the debbugs.gnu.org bug report #61312,
regarding Patch for eglot: scala LSP binary name
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
61312: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61312
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Hello,
It seems that eglot expects the scala metals LSP server binary to be named `metals-emacs` instead of `metals`. The included patch fixes this behaviour. At least in the nix package manager the `metals` binary is simply call 'metals'. However if other package managers distribute an alias for the binary as 'metals-emacs' as well we could instead do something like:
```
(scala-mode . ,(eglot-alternatives '("metals" "metals-emacs"))
```
[0001-Patch-eglot-scala-LSP-server-binary-name.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
> From: João Távora <joaotavora <at> gmail.com>
> Date: Mon, 6 Feb 2023 18:45:39 +0000
> Cc: skykanin <skykanin <at> proton.me>, 61312 <at> debbugs.gnu.org
>
> As usual, I defer this decision to you. I think it's reasonable to
> support both names, and I also think it's reasonable to stick to
> just the one we think is most used or representative of the
> program.
>
> In this case, I think "metals-emacs" is a contradiction of LSP's
> stated goal, which is to have editor-agnostic servers. But I
> don't know what the reasons were for doing this, I haven't
> investigated.
>
> It would be even more reasonable, I think, if distributions
> settled -- or mostly settled - on names for their binaries they
> distribute, much like *nix toolchains do. Of course we do not
> control that process, but maybe we could influence it instead
> of being constantly influenced by it.
Thanks, I went with supporting both names in Emacs 29. I cannot see
any harm in supporting both, once "metals" is the first name to check.
With that, I'm closing this bug.
This bug report was last modified 2 years and 156 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.