From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83lejmeiwz.fsf@gnu.org> References: <83ttyb466u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24345"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62407@debbugs.gnu.org To: =?UTF-8?Q?=E7=89=9F_?= =?UTF-8?Q?=E6=A1=90?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 24 16:30:01 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfjMf-0005jR-DT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Mar 2023 16:30:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfbPD-0007zf-CY; Fri, 24 Mar 2023 03:00:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfbPA-0007zG-Jo for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 03:00:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pfbPA-0007cZ-9V for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 03:00:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfbP7-0004X2-U6 for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 03:00:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Mar 2023 07:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62407 X-GNU-PR-Package: emacs Original-Received: via spool by 62407-submit@debbugs.gnu.org id=B62407.167964115117318 (code B ref 62407); Fri, 24 Mar 2023 07:00:01 +0000 Original-Received: (at 62407) by debbugs.gnu.org; 24 Mar 2023 06:59:11 +0000 Original-Received: from localhost ([127.0.0.1]:39716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfbOG-0004VE-U4 for submit@debbugs.gnu.org; Fri, 24 Mar 2023 02:59:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfbOC-0004Ue-7Y for 62407@debbugs.gnu.org; Fri, 24 Mar 2023 02:59:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfbO3-0007ZF-JM; Fri, 24 Mar 2023 02:58:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=LpqQh8wUMZUlzIit3MrbQwNAuHhspXXJhZPeRRZ4jXs=; b=n5WwWrldbc+2LqNcFfBb A5z/oxH7n0XGOompLjvX3AfwsMJwAq14niWrw2EstAUiVPhY3s9B/qgyPWoimZjyML2OduECC7ckc 5jJymxvuf8iNB1hCx6XDkvGylPAwlCzf8NA6B8cgX70Otc+QcIh+dKGkCGU1ZW2L/+9pwTAb6AX0F czjyAlcV/I+6R7IzzTn64hHxbdqkM1pmwY5CyRiczQIf4zhk04Tv18COkveGdQbmRa2RY82xscFi6 SR0JoXogrqxDmE4/pSUPxCcq1PTdq/Y8xOERRYYjiDKC7mZyJRRhvR4mnAG6/1I9+AoiEbATpCG06 CKave4cm6dTc9A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfbM8-00005r-SB; Fri, 24 Mar 2023 02:58:52 -0400 In-Reply-To: (message from =?UTF-8?Q?=E7=89=9F_?= =?UTF-8?Q?=E6=A1=90?= on Fri, 24 Mar 2023 02:22:44 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258501 Archived-At: > From: 牟 桐 > 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")))