GNU bug report logs -
#65359
[PATCH] eglot: add "lexical" LSP server
Previous Next
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
Message #20 received at 65359 <at> debbugs.gnu.org (full text, mbox):
> From: Mou Tong <mou.tong <at> outlook.com>
> CC: "65359 <at> debbugs.gnu.org" <65359 <at> debbugs.gnu.org>
> Date: Fri, 18 Aug 2023 07:08:42 +0000
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Then we should make this entry be in effect only on systems that
> > aren't Windows.
> >
> > I don't mind installing this now, but only if it doesn't break Elixir
> > support on Windows, which would mean this new entry should be hidden
> > when Emacs runs on Windows.
>
> Oh, I see, here is the new patch, I'm using the `eglot-alternatives`
> in the else so we don't see lexical on Windows.
>
> > I also don't mind waiting...
>
> 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.
> From 18161aea6287ffd177834fdac156f6037c410856 Mon Sep 17 00:00:00 2001
> From: dalu <mou.tong <at> outlook.com>
> Date: Thu, 17 Aug 2023 18:34:42 +0800
> Subject: [PATCH] Add "lexical" LSP server to Eglot
>
> lexical does not support Windows currently
> ---
> lisp/progmodes/eglot.el | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
> index 113ff08e94e..65daa0941d5 100644
> --- a/lisp/progmodes/eglot.el
> +++ b/lisp/progmodes/eglot.el
> @@ -222,7 +222,8 @@ eglot-server-programs
> . ,(if (and (fboundp 'w32-shell-dos-semantics)
> (w32-shell-dos-semantics))
> '("language_server.bat")
> - '("language_server.sh")))
> + (eglot-alternatives
> + '("language_server.sh" "start_lexical.sh"))))
> (ada-mode . ("ada_language_server"))
> (scala-mode . ,(eglot-alternatives
> '("metals" "metals-emacs")))
> --
> 2.41.0
>
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.