GNU bug report logs - #65359
[PATCH] eglot: add "lexical" LSP server

Previous Next

Package: emacs;

Reported by: Mou Tong <mou.tong <at> outlook.com>

Date: Fri, 18 Aug 2023 01:44:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#65359: closed ([PATCH] eglot: add "lexical" LSP server)
Date: Sat, 19 Aug 2023 14:12:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 19 Aug 2023 17:11:24 +0300
with message-id <83zg2nxgtv.fsf <at> gnu.org>
and subject line Re: bug#65359: [PATCH] eglot: add "lexical" LSP server
has caused the debbugs.gnu.org bug report #65359,
regarding [PATCH] eglot: add "lexical" LSP server
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
65359: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65359
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mou Tong <mou.tong <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: [PATCH] eglot: add "lexical" LSP server
Date: Fri, 18 Aug 2023 01:38:39 +0000
[Message part 3 (text/plain, inline)]
There is a new LSP server for elixir: [lexical].

Although it said there had problems to use it with eglot, but I didn't
meet the [problem] it said in the instruction.

And I had used it for serveral projects and it worked fine, I put this
in my config and I don't know if there is a better way:

```emacs-lisp
(with-eval-after-load 'eglot
  (setf (alist-get '(elixir-mode elixir-ts-mode heex-ts-mode)
                   eglot-server-programs
                   nil nil #'equal)
        (eglot-alternatives
         `(("start_lexical.sh")
           ,(if (and (fboundp 'w32-shell-dos-semantics)
                     (w32-shell-dos-semantics))
                '("language_server.bat")
              '("language_server.sh"))))))
```

So I send a patch like this.

[lexical]: https://github.com/lexical-lsp/lexical

[problem]: https://github.com/lexical-lsp/lexical/blob/main/pages/installation.md#vanilla-emacs-with-eglot

[Message part 4 (text/html, inline)]
[0001-Add-lexical-LSP-server-to-Eglot.patch (application/octet-stream, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: João Távora <joaotavora <at> gmail.com>
Cc: 65359-done <at> debbugs.gnu.org, mou.tong <at> outlook.com
Subject: Re: bug#65359: [PATCH] eglot: add "lexical" LSP server
Date: Sat, 19 Aug 2023 17:11:24 +0300
> From: João Távora <joaotavora <at> gmail.com>
> Date: Sat, 19 Aug 2023 11:51:48 +0100
> Cc: Mou Tong <mou.tong <at> outlook.com>, 65359 <at> debbugs.gnu.org
> 
> On Sat, Aug 19, 2023 at 9:38 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
> > > Actually I'd like it got merged so I needn't to keep the hack in my
> > > configuration. (Forgive me laziness...)
> >
> > João, is the below OK with you?  It's for the master branch.
> 
> Yes, it's fine.  Thanks.

Thanks, installed on master, and closing the bug.


This bug report was last modified 1 year and 335 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.