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:35:12 +0300 Message-ID: <83mt42ejxb.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="29802"; 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:57 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 1pfjNO-0006qU-59 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Mar 2023 16:30:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfb1z-00064C-4X; Fri, 24 Mar 2023 02:36: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 1pfb1w-00063a-MK for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 02:36:04 -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 1pfb1w-00076m-4b for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 02:36:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfb1t-0003pi-W1 for bug-gnu-emacs@gnu.org; Fri, 24 Mar 2023 02:36:02 -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 06:36: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.167963975714721 (code B ref 62407); Fri, 24 Mar 2023 06:36:01 +0000 Original-Received: (at 62407) by debbugs.gnu.org; 24 Mar 2023 06:35:57 +0000 Original-Received: from localhost ([127.0.0.1]:39708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfb1o-0003pL-3C for submit@debbugs.gnu.org; Fri, 24 Mar 2023 02:35:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfb1j-0003ow-AA for 62407@debbugs.gnu.org; Fri, 24 Mar 2023 02:35:54 -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 1pfb1Y-0006zj-Pc; Fri, 24 Mar 2023 02:35:40 -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=3Af3vqZbSWmePwS6EgbCOcc6K/z9uuUDuCwy5Y7FZWI=; b=LMWihY6dUGuIXh+73QfX hajt5w5iCziW86xxhBVUVMFcTy8D4MI46I1oxEh9VLsgpzggtX4mbHEA80IeCscu3Qvn7N5ZW0wuL E8n04fGWFKBRaGvF20tWAAlgYaE7NplTmP8knA7IHxiDj4L7TENMVPISY+sltvhofC/Dn2TvewfOe ckPL70WQYXgSQuGQHDnxZuRHC/kpEPM54GneGnNlM0BJojyCfaLFntQGM8ZBEkaMPv5mBSZIPMkhx bhqIJ3FmgqrszetQ5LkoRDvKw+HCF+H6FRzV2R2+oD+GceHPn7xwvyTuavFEbLq6jYo4jOVxDOIt/ cW1OpJSN75ByXg==; 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 1pfb1N-0003yK-O3; Fri, 24 Mar 2023 02:35:38 -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:258502 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")) > ``` I'm not saying that the current code is correct, I'm just saying that the condition to use language_server.bat should be based on the value of shell-file-name, not on system-type, because some people use Bash on Windows as well. Btw, is language_server.bat part of that server's distribution, or did you write the batch file yourself?