From: Eli Zaretskii <eliz@gnu.org>
To: "牟 桐" <mou.tong@outlook.com>
Cc: 62407@debbugs.gnu.org
Subject: bug#62407: 30.0.50; The command to run elixir-ls on Windows is `language_server.bat`
Date: Fri, 24 Mar 2023 09:57:00 +0300 [thread overview]
Message-ID: <83lejmeiwz.fsf@gnu.org> (raw)
In-Reply-To: <FAE7AFCA-3D5E-4BD2-8B15-27949C6CEDB7@outlook.com> (message from 牟 桐 on Fri, 24 Mar 2023 02:22:44 +0000)
> From: 牟 桐 <mou.tong@outlook.com>
> CC: "62407@debbugs.gnu.org" <62407@debbugs.gnu.org>
> Date: Fri, 24 Mar 2023 02:22:44 +0000
>
>
> > What is the value of shell-file-name on that Windows
> > system?
>
> It's `cmdproxy.exe` on Windows, after I changed it to `powershell.exe`
> and `cmd.exe`, the eglot's guess stays the same. I guess that is because
> eglot had hardcoded the result here:
>
> https://github.com/emacs-mirror/emacs/blob/4566a0c6b825a18e6c065da0543b8b942b7db8df/lisp/progmodes/eglot.el#L224-L225
>
> ``` emacs-lisp-mode
> ((elixir-mode elixir-ts-mode heex-ts-mode)
> . ("language_server.sh"))
> ```
Can you see if the patch below solves your problem?
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 058bcec..42793a1 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -222,7 +222,10 @@ eglot-server-programs
(dart-mode . ("dart" "language-server"
"--client-id" "emacs.eglot-dart"))
((elixir-mode elixir-ts-mode heex-ts-mode)
- . ("language_server.sh"))
+ . ,(if (and (fboundp 'w32-shell-dos-semantics)
+ (w32-shell-dos-semantics))
+ "language_server.bat"
+ "language_server.sh"))
(ada-mode . ("ada_language_server"))
(scala-mode . ,(eglot-alternatives
'("metals" "metals-emacs")))
prev parent reply other threads:[~2023-03-24 6:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-23 16:14 bug#62407: 30.0.50; The command to run elixir-ls on Windows is `language_server.bat` 牟 桐
2023-03-23 19:29 ` Eli Zaretskii
2023-03-24 2:22 ` 牟 桐
2023-03-24 6:35 ` Eli Zaretskii
2023-03-24 7:18 ` 牟 桐
2023-03-24 7:47 ` 牟 桐
2023-03-24 11:40 ` Eli Zaretskii
2023-03-24 15:29 ` Eli Zaretskii
2023-03-24 15:40 ` João Távora
2023-03-24 18:38 ` Eli Zaretskii
2023-03-24 6:57 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83lejmeiwz.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=62407@debbugs.gnu.org \
--cc=mou.tong@outlook.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).